Exemplo n.º 1
0
        private void RealTimeT_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            TimeSpan t = DateTime.Now - PriTime;
            if (t.Hours == 0 && t.Minutes == 0 && t.Seconds == 0 && t.Milliseconds <= 500)
            {
                Number++;
            }
            else
            {
                Number = 1;
            }
            PriTime = DateTime.Now;

            if (Number == 2)
            {
                RealtimeProperty rp = new RealtimeProperty();
                rp.RealTimeData = this;
                rp.Init();
                rp.Owner = Common1.MainWin;
                rp.Show();
                Number = 0;
            }
        }
Exemplo n.º 2
0
 private void PropertyMenuItem_Click(object sender, RoutedEventArgs e)
 {
     RealtimeProperty rp = new RealtimeProperty();
     rp.RealTimeData = this;
     rp.Init();
     rp.Owner = Common1.MainWin;
     rp.Show();
 }