// Initialization private void InitializeForms() { PropertiesForm = new PropertiesForm(this); PropertiesForm.ToggleButton = toggleProperties; 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; PropertiesForm.Show(dockPanel, DockState.DockLeft); MoldsForm = new MoldsForm(this); MoldsForm.ToggleButton = toggleMolds; MoldsForm.Show(dockPanel, DockState.Document); SequencesForm = new SequencesForm(this); SequencesForm.ToggleButton = toggleSequences; SequencesForm.Show(MoldsForm.Pane, DockAlignment.Bottom, 0.50); }
private void LoadProperties() { Cursor.Current = Cursors.WaitCursor; this.Updating = true; // Properties form PropertiesForm.LoadProperties(); animation.Tileset_tiles = new Tileset(animation, palette); // Editors LoadMoldEditor(); LoadSequenceEditor(); PropertiesForm.SetFreeBytesLabel(); // Finished this.Updating = false; GC.Collect(); Cursor.Current = Cursors.Arrow; }