Beispiel #1
0
        private void Form1SetUp()
        {
            f1.TriggerStartTimerCPB1 += (s, e) => tc.timerCPB1Start();
            f1.TriggerStartTimerCPB2 += (s, e) => tc.timerCPB2Start();
            f1.TriggerStartTimerCPB3 += (s, e) => tc.timerCPB3Start();
            f1.TriggerStartTimerCPB4 += (s, e) => tc.timerCPB4Start();

            f1.TriggerCloseTimerCPB1 += (s, e) => tc.timerCPB1Close();
            f1.TriggerCloseTimerCPB2 += (s, e) => tc.timerCPB2Close();
            f1.TriggerCloseTimerCPB3 += (s, e) => tc.timerCPB3Close();
            f1.TriggerCloseTimerCPB4 += (s, e) => tc.timerCPB4Close();

            tc.TimerCPB1Update += (s, e) => f1.UpdateCircularProgressBar1(e.IntValue);
            tc.TimerCPB2Update += (s, e) => f1.UpdateCircularProgressBar2(e.IntValue);
            tc.TimerCPB3Update += (s, e) => f1.UpdateCircularProgressBar3(e.IntValue);
            tc.TimerCPB4Update += (s, e) => f1.UpdateCircularProgressBar4(e.IntValue);

            tc.TimerCPB1IsUp += (s, e) => this.OnTimerCPB1IsUp();
            tc.TimerCPB2IsUp += (s, e) => this.OnTimerCPB2IsUp();
            tc.TimerCPB3IsUp += (s, e) => this.OnTimerCPB3IsUp();
            tc.TimerCPB4IsUp += (s, e) => this.OnTimerCPB4IsUp();

            etmgt.CursorAllowedToMoveChanged += (s, e) => this.OnCursorAllowedToMoveChanged(e.BooleanValue);

            Application.Run(f1);
        }