예제 #1
0
파일: Password.cs 프로젝트: zzzpppNj/P6
        private void btnCancel_Click(object sender, EventArgs e)
        {
            MapWindow open = new MapWindow();

            open.ShowDialog();
            timer1.Stop();
            open.ShowDialog();
            Close();
            Dispose(true);
        }
예제 #2
0
        private void btnCancelNode_Click(object sender, EventArgs e)
        {
            MapWindow open = new MapWindow();

            Destinations.Dest.Clear();
            Timer1.Stop();
            open.ShowDialog();
            Close();
            Dispose();
        }
예제 #3
0
        private void btnSelectDest_Click(object sender, EventArgs e)
        {
            MapWindow open = new MapWindow();

            timer1.Stop();
            //Empties the "stops" queue so old entries doesn't get in the way of new ones.
            Destinations.Dest.Clear();
            open.ShowDialog();
            Close();
            Dispose(true);
        }
예제 #4
0
파일: Password.cs 프로젝트: zzzpppNj/P6
        private void timer1_Tick(object sender, EventArgs e)
        {
            DateTime checkTime = DateTime.Now;
            TimeSpan span      = checkTime.Subtract(idleTimer);

            if (span.Seconds > 30)
            {
                MapWindow open = new MapWindow();
                timer1.Stop();
                open.ShowDialog();
                Close();
                Dispose(true);
            }
        }