private void btnCancel_Click(object sender, EventArgs e) { MapWindow open = new MapWindow(); open.ShowDialog(); timer1.Stop(); open.ShowDialog(); Close(); Dispose(true); }
private void btnCancelNode_Click(object sender, EventArgs e) { MapWindow open = new MapWindow(); Destinations.Dest.Clear(); Timer1.Stop(); open.ShowDialog(); Close(); Dispose(); }
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); }
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); } }