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);
         }
     }
 }
Exemple #2
0
        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);
                }
            }
        }