40 lines
1.6 KiB
C#
40 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.IO;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace ANX.ContentCompiler.GUI.Dialogues
|
|||
|
{
|
|||
|
public partial class NewFolderScreen : Form
|
|||
|
{
|
|||
|
public NewFolderScreen()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
SetUpColors();
|
|||
|
}
|
|||
|
|
|||
|
private void SetUpColors()
|
|||
|
{
|
|||
|
BackColor = Settings.MainColor;
|
|||
|
ForeColor = Settings.ForeColor;
|
|||
|
button3.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
|
|||
|
buttonCancel.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
|
|||
|
buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
|
|||
|
button3.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
|
|||
|
buttonCancel.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
|
|||
|
buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
|
|||
|
buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
|
|||
|
button3.FlatAppearance.BorderColor = Settings.LightMainColor;
|
|||
|
buttonCancel.FlatAppearance.BorderColor = Settings.LightMainColor;
|
|||
|
textBoxName.BackColor = Settings.DarkMainColor;
|
|||
|
textBoxName.ForeColor = Settings.ForeColor;
|
|||
|
}
|
|||
|
|
|||
|
private void ButtonNextClick(object sender, EventArgs e)
|
|||
|
{
|
|||
|
if (String.IsNullOrEmpty(textBoxName.Text))
|
|||
|
MessageBox.Show("You need to type a name!", "Missing value", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|||
|
else
|
|||
|
DialogResult = DialogResult.OK;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|