67 lines
2.7 KiB
C#
Raw Normal View History

using System;
using System.Windows.Forms;
using ANX.Framework.NonXNA.Development;
namespace ANX.ContentCompiler.GUI.Dialogues
{
[Developer("SilentWarrior/Eagle Eye Studios")]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.InProgress)]
public partial class NewProjectOutputScreen : Form
{
public NewProjectOutputScreen()
{
InitializeComponent();
2012-08-27 19:09:10 +00:00
SetUpColors();
}
private void ArrowButtonYesClick(object sender, EventArgs e)
{
labelLocation.Visible = true;
textBoxLocation.Visible = true;
buttonBrowse.Visible = true;
buttonNext.Enabled = true;
arrowButtonNo.Enabled = false;
}
2012-08-27 19:09:10 +00:00
private void SetUpColors()
{
BackColor = Settings.MainColor;
ForeColor = Settings.ForeColor;
buttonClose.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonBrowse.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonCancel.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonClose.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonBrowse.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonCancel.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
buttonClose.FlatAppearance.BorderColor = Settings.LightMainColor;
buttonBrowse.FlatAppearance.BorderColor = Settings.LightMainColor;
buttonCancel.FlatAppearance.BorderColor = Settings.LightMainColor;
textBoxLocation.BackColor = Settings.DarkMainColor;
textBoxLocation.ForeColor = Settings.ForeColor;
}
private void ArrowButtonNoClick(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void ButtonBrowseClick(object sender, EventArgs e)
{
using (var dlg = new FolderBrowserDialog())
{
dlg.ShowNewFolderButton = true;
dlg.RootFolder = Environment.SpecialFolder.MyComputer;
if (dlg.ShowDialog() == DialogResult.OK)
{
textBoxLocation.Text = dlg.SelectedPath;
}
}
DialogResult = DialogResult.None;
}
}
}