SND\eagleeyestudios_cp 01cac2c358 Content Compiler:
- Added missing FakeBuildLogger.cs
- changed the preview implementation to support previewing while working in the main window (handy for multiple screens!)
- Did some cleaning and added #region tags and copyright text
2015-03-15 01:11:51 +01:00

63 lines
2.0 KiB
C#

#region Using Statements
using System;
using System.Windows.Forms;
using ANX.ContentCompiler.GUI.Dialogues;
using ANX.Framework.NonXNA.Development;
#endregion
// This file is part of the EES Content Compiler 4,
// © 2008 - 2012 by Eagle Eye Studios.
// The EES Content Compiler 4 is released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.ContentCompiler.GUI.States
{
[Developer("SilentWarrior/Eagle Eye Studios")]
[PercentageComplete(90)] //TODO: Add click event to open preview window!
[TestState(TestStateAttribute.TestState.Tested)]
public partial class EditingState : UserControl
{
public EditingState()
{
InitializeComponent();
}
private void EditingStateLoad(object sender, EventArgs e)
{
ForeColor = Settings.ForeColor;
BackColor = Settings.MainColor;
}
private void ArrowButtonAddFilesClick(object sender, EventArgs e)
{
using (var dlg = new OpenFileDialog())
{
dlg.Multiselect = true;
dlg.Title = "Add files";
if (dlg.ShowDialog() == DialogResult.OK)
MainWindow.Instance.AddFiles(dlg.FileNames);
}
}
private void ArrowButtonCreateFolderClick(object sender, EventArgs e)
{
using (var dlg = new NewFolderScreen())
{
if (dlg.ShowDialog() == DialogResult.OK)
{
MainWindow.Instance.AddFolder(dlg.textBoxName.Text);
}
}
}
private void ArrowButtonBuildClick(object sender, EventArgs e)
{
MainWindow.Instance.BuildProject(sender, e);
}
private void ArrowButtonPreviewClick(object sender, EventArgs e)
{
MainWindow.Instance.ShowPreview();
}
}
}