2012-08-26 19:03:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
2012-09-08 22:03:13 +00:00
|
|
|
|
using ANX.ContentCompiler.GUI.Dialogues;
|
2012-08-26 19:03:12 +00:00
|
|
|
|
|
|
|
|
|
namespace ANX.ContentCompiler.GUI.States
|
|
|
|
|
{
|
|
|
|
|
public partial class EditingState : UserControl
|
|
|
|
|
{
|
|
|
|
|
public EditingState()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2012-08-27 19:09:10 +00:00
|
|
|
|
|
|
|
|
|
private void EditingStateLoad(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ForeColor = Settings.ForeColor;
|
|
|
|
|
BackColor = Settings.MainColor;
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-01 16:30:35 +00:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-08 22:03:13 +00:00
|
|
|
|
private void ArrowButtonCreateFolderClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
using (var dlg = new NewFolderScreen())
|
|
|
|
|
{
|
|
|
|
|
if (dlg.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
MainWindow.Instance.AddFolder(dlg.textBoxName.Text);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-26 19:03:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|