private void Map_Button_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { MapWindow mw = new MapWindow(); mw.ShowDialog(); this.Close(); }
/// <summary> /// Przechodzi do wyboru map /// </summary> private void Map_Button_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { MapWindow mw = new MapWindow(); /// <remarks> przypisuje zmiennej mw obiekt MapWindow </remarks> mw.ShowDialog(); /// <remarks> otwiera okno </remarks> this.Close(); /// <remarks> zamyka okno </remarks> }
private void Close_Click(object sender, RoutedEventArgs e) { MapWindow mw = new MapWindow(); mw.ShowDialog(); this.Close(); this.Close(); }