コード例 #1
0
ファイル: ProjectWindow.xaml.cs プロジェクト: hordure/WPF
        private void menu_EditProject_Click(object sender, RoutedEventArgs e)
        {
            //Send current project to edit window
            App.Current.Properties["project"] = projectDataGrid.SelectedItem;
            EditProjectWindow win = new EditProjectWindow();
            win.ShowDialog();
            App.Current.Properties["project"] = null;
            UpdateWindow();

        }
コード例 #2
0
 private void btnEditProject_Click(object sender, RoutedEventArgs e)
 {
     //edit project
     App.Current.Properties["project"] = App.Current.Properties["thisProject"];
     EditProjectWindow win = new EditProjectWindow();
     win.ShowDialog();
     App.Current.Properties["project"] = null;
     UpdateWindow();
 }