SND\eagleeyestudios_cp 4c50fcd91d Content Compiler 3:
- Added ability to save project using CTRL+S
- Fixed version label in menu state
- Added Preview screen (empty for now)
- Improved selection & folder handling
2015-03-15 01:11:03 +01:00

56 lines
1.7 KiB
C#

using System;
using System.Windows.Forms;
using ANX.ContentCompiler.GUI.Dialogues;
using ANX.Framework.NonXNA.Development;
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();
}
}
}