anx.framework/Tools/ANXContentCompilerGUI/Dialogues/NewProjectSummaryScreen.cs

49 lines
2.3 KiB
C#
Raw Normal View History

using System;
using System.Windows.Forms;
namespace ANX.ContentCompiler.GUI.Dialogues
{
public partial class NewProjectSummaryScreen : Form
{
public NewProjectSummaryScreen(String projectName, String projectDir, String outputDir, bool customImporters, String customImportersDir, int customImportersFound, int customProcessorsFound)
{
InitializeComponent();
2012-08-27 19:09:10 +00:00
SetUpColors();
textBox.Text =
"Summary for new project " + projectName + Environment.NewLine +
"=========================================" + Environment.NewLine +
"Name: " + projectName + Environment.NewLine +
"Media Directory: " + projectDir + Environment.NewLine + Environment.NewLine +
"Output Directory: " + outputDir + Environment.NewLine + Environment.NewLine +
"Custom Importers/Processors: " + customImporters + Environment.NewLine;
if (customImporters)
{
textBox.Text +=
"Custom Importers/Processors Location: " + customImportersDir + Environment.NewLine + Environment.NewLine +
"Importers/Processors found in given Location:" + Environment.NewLine +
"Importers: " + customImportersFound + Environment.NewLine +
"Processors: " + customProcessorsFound;
}
}
2012-08-27 19:09:10 +00:00
private void SetUpColors()
{
BackColor = Settings.MainColor;
ForeColor = Settings.ForeColor;
buttonClose.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
buttonClose.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
buttonClose.FlatAppearance.BorderColor = Settings.LightMainColor;
textBox.BackColor = Settings.DarkMainColor;
textBox.ForeColor = Settings.ForeColor;
}
private void ButtonNextClick(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
}
}