コード例 #1
0
        private void AddBuilding(object sender, RoutedEventArgs e)
        {
            var addBuildingsWindow = new AddEditBuildingWindow();

            addBuildingsWindow.Show();
            Close();
        }
コード例 #2
0
        private void EditBuilding(object sender, RoutedEventArgs e)
        {
            var editBuilding       = (BuildingModel)((Button)sender).Tag;
            var addBuildingsWindow = new AddEditBuildingWindow(editBuilding);

            addBuildingsWindow.Show();
            Close();
        }