Example #1
0
 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]);
 }
Example #2
0
        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;
        }
Example #3
0
 private Application(RunStage runStage = RunStage.Production)
 {
     this.runStage = runStage;
 }