コード例 #1
0
 // Timer 3
 private void timer_start_3_Click(object sender, RoutedEventArgs e)
 {
     if (tm3 == null)
     {
         tm3 = new TimerLogic(comboBox_h3, comboBox_m3, comboBox_s3, timer_label_h3, timer_label_m3, timer_label_s3, timer_pause_3, timer_start_3, textBlock_3, this, ni, notif3.filepath, b_notif_3);
     }
     if (!tm3.is_running)
     {
         tm3.Start();
     }
 }
コード例 #2
0
 // Timer 2
 private void timer_start_2_Click(object sender, RoutedEventArgs e)
 {
     if (tm2 == null)
     {
         tm2 = new TimerLogic(comboBox_h2, comboBox_m2, comboBox_s2, timer_label_h2, timer_label_m2, timer_label_s2, timer_pause_2, timer_start_2, textBlock_2, this, ni, notif2.filepath, b_notif_2);
     }
     if (!tm2.is_running)
     {
         tm2.Start();
     }
 }
コード例 #3
0
        // Timer 1
        private void timer_start_1_Click(object sender, RoutedEventArgs e)
        {
            if (tm == null)
            {
                tm = new TimerLogic(comboBox_h, comboBox_m, comboBox_s, timer_label_h, timer_label_m, timer_label_s, timer_pause_1, timer_start_1, textBlock, this, ni, notif1.filepath, b_notif_1);
            }

            if (!tm.is_running)
            {
                tm.Start();
            }
        }