public void Assign(Project project) { ResourceSelect dlg = new ResourceSelect(); if ((bool)dlg.ShowDialog()) { int id = dlg.ResourceId; try { project.Resources.Assign(id); } catch (Exception ex) { MessageBox.Show( ex.Message, "Assignment error", MessageBoxButton.OK, MessageBoxImage.Information); } } }
public void Assign(Project project) { ResourceSelect dlg = new ResourceSelect(); if ((bool)dlg.ShowDialog()) { int id = dlg.ResourceId; try { project.Resources.Assign(id); } catch (Exception ex) { MessageBox.Show( ex.Message, "Assignment error", MessageBoxButton.OK, MessageBoxImage.Information); } } }