Exemple #1
0
 //定时显示
 private void timer1_Tick(object sender, EventArgs e)
 {
     Showfrm.f2.TopMost = true;
     Showfrm.f3.TopMost = true;
     if (s == DateTime.Now.ToString("t"))
     {
         Showfrm.show();
     }
 }
Exemple #2
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != null)
     {
         Showfrm.show();
     }
     else
     {
     }
 }
Exemple #3
0
        //间隔显示
        private void timer2_Tick(object sender, EventArgs e)
        {
            //Showfrm.f2.TopMost = true;
            //Showfrm.f3.TopMost = true;

            span = DateTime.Now.TimeOfDay;
            ts   = span - Form2.Span;
            if (c == Convert.ToInt32(ts.Minutes.ToString()))
            {
                this.timer2.Stop();
                Showfrm.show();
            }
        }
Exemple #4
0
 private void button4_Click(object sender, EventArgs e)
 {
     c = Convert.ToInt32(comboBox4.Text);
     timer2.Interval = 100;
     Showfrm.show();
 }
Exemple #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     Showfrm.show();
 }