private void addProject_Click(object sender, RoutedEventArgs e) { //disable employee selection in addProjectWindow App.Current.Properties["MyProject"] = "y"; AddProjectWindow win = new AddProjectWindow(); win.ShowDialog(); App.Current.Properties["MyProject"] = null; UpdateWindow(sender, e); }
private void btnAddProject_Click(object sender, RoutedEventArgs e) { AddProjectWindow win = new AddProjectWindow(); win.ShowDialog(); UpdateWindow(); }