public static Application GetInstance(RunStage runStage = RunStage.Production) { if (!instances.ContainsKey(runStage) || instances[runStage] == null) { var instance = new Application(runStage); instances.Add(runStage, instance); } return(instances[runStage]); }
public Stage(int number, Panel panel, Button button, RunStage eventRun, StopStage eventStop) { num = number; pnLamp = panel; btnStop = button; btnStop.Click += Stop; handleRun = eventRun; handleStop = eventStop; }
private Application(RunStage runStage = RunStage.Production) { this.runStage = runStage; }