public AlertMessage(CountTimerControl ctc)
 {
     InitializeComponent();
     this.Tag = "null";
     timerCon = ctc;
     message();
     sound();
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            InitializeTimers();
            countUp1.BringToFront();
            tmCurTimer.Start();
            ActiveCounter   = new CountTimerControl("cu", this);
            visibleUControl = new CountTimerControl("cu", this);
            visibleCounter  = new CountTimerControl("cu", this);

            notification                = new Notification(this);
            countDown1.notification     = notification;
            countUp1.notification       = notification;
            schedulePanel1.notification = notification;
            countDown1.form1            = this;
            countUp1.form1              = this;
            schedulePanel1.form1        = this;
            settingsPanel1.GeneralSettings1.notification = notification;

            if (Settings1.Default.AskForPass == true)
            {
                LockApp();
            }
        }
 private void CountDown_Load(object sender, EventArgs e)
 {
     CountDownCountTimerControl = new CountTimerControl("cd", form1);
 }
예제 #4
0
 private void CountUp_Load(object sender, EventArgs e)
 {
     CountUpCountTimerControl = new CountTimerControl("cu", form1);
 }