public ColorF() { reallyDesignMode = false; // -> cTor doesn't run in DesignMode. That = this; // -> req'd before InitializeComponent() by SwatchIo.Read() InitializeComponent(); int x = CreatureVisualizerPreferences.that.x_ColorDialog; if (x > -1) { int y = CreatureVisualizerPreferences.that.y_ColorDialog; if (y > -1 && CreVisF.checklocation(x, y)) { StartPosition = FormStartPosition.Manual; SetDesktopLocation(x, y); } } _tconsole.Interval = 3250; _tconsole.Tick += tick_console; #if DEBUG ColorControl.InitialColor(System.Drawing.Color.White); // <- STANDALONE PROGRAM START - TEST ONLY <<- #endif }
/// <summary> /// Handler that launches CreatureVisualizer from the toolset's Plugins. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void activate(object sender, EventArgs e) { var f = new CreVisF(); f.Show(); }