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(); }
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(); }