コード例 #1
0
        private void InitializeForms()
        {
            FormationsForm = new FormationsForm(this);
            FormationsForm.ToggleButton = toggleFormations;
            FormationsForm.Left         = this.Left;
            FormationsForm.Top          = this.Bottom;
            DockPanel = new DockPanel();
            DockPanel = dockPanel;

            Settings settings = Settings.Default;

            if (settings.VisualTheme == 0 || settings.VisualTheme == 1)
            {
                DockPanel.Theme = new VS2005Theme();
            }
            else if (settings.VisualTheme == 2)
            {
                //DockPanel.Theme = new VS2013BlueTheme();
            }

            dockPanel = DockPanel;
            FormationsForm.Show(dockPanel, DockState.Document);
            PacksForm = new PacksForm(this);
            PacksForm.ToggleButton = togglePacks;
            PacksForm.Left         = FormationsForm.Right;
            PacksForm.Top          = this.Bottom;
            PacksForm.Show(FormationsForm.Pane, DockAlignment.Right, 0.50);
        }
コード例 #2
0
 private void resetFormation_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("You're about to undo all changes to the current formation. Go ahead with reset?",
                         "LAZY SHELL", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
     {
         return;
     }
     Formation = new Formation(FormationIndex);
     FormationsForm.LoadProperties();
 }
コード例 #3
0
 private void clearFormations_Click(object sender, EventArgs e)
 {
     new ClearElements(Model.Formations, FormationIndex, "CLEAR FORMATIONS...").ShowDialog();
     FormationsForm.LoadProperties();
 }
コード例 #4
0
 private void importFormations_Click(object sender, EventArgs e)
 {
     new IOElements(Model.Formations, IOMode.Import, FormationIndex, "IMPORT FORMATIONS...").ShowDialog();
     FormationsForm.LoadProperties();
 }