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); }
private void resetPack_Click(object sender, EventArgs e) { if (MessageBox.Show("You're about to undo all changes to the current pack. Go ahead with reset?", "LAZY SHELL", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) { return; } PacksForm.Pack = new Pack(PacksForm.Index); PacksForm.LoadProperties(); }
private void clearPacks_Click(object sender, EventArgs e) { new ClearElements(Model.Packs, PacksForm.Index, "CLEAR PACKS...").ShowDialog(); PacksForm.LoadProperties(); }
private void importPacks_Click(object sender, EventArgs e) { new IOElements(Model.Packs, IOMode.Import, PacksForm.Index, "IMPORT PACKS...").ShowDialog(); PacksForm.LoadProperties(); }