void file_change_size_Click(object sender, RoutedEventArgs e) { if (this.activeMap != null) { NewMapDialog dialog = new NewMapDialog(this.activeMap); dialog.ShowDialog(); this.activeMap.FillGrids( this.ArtBoard_Front, this.ArtBoard_Middle, this.ArtBoard_Back); } }
void file_new_Click(object sender, RoutedEventArgs e) { NewMapDialog dialog = new NewMapDialog(); dialog.ShowDialog(); if (dialog.OutputMap != null) { this.activeMap = dialog.OutputMap; this.ArtBoard_Back.Children.Clear(); this.ArtBoard_Middle.Children.Clear(); this.ArtBoard_Front.Children.Clear(); this.activeMap.FillGrids( this.ArtBoard_Front, this.ArtBoard_Middle, this.ArtBoard_Back); this.RefreshBackground(); } }