Beispiel #1
0
 /// <summary>
 /// Private action to open create new job Window
 /// </summary>
 private void newJob()
 {
     jobWindow = new JobWindow();
     showForm(jobWindow);
 }
Beispiel #2
0
 /// <summary>
 /// Private action to edit a selected job
 /// </summary>
 private void editJob()
 {
     if (jobList.SelectedItems.Count != 1)
     {
         warningLabel.Show();
         return;
     }
     string jobName = jobList.SelectedItems[0].Text;
     controller.loadJob(jobName);
     string sourcePath = controller.getJobSourcePath();
     string targetPath = controller.getJobTargetPath();
     int type = controller.getJobType();
     JobWindow jobWindow = new JobWindow(jobName, sourcePath, targetPath, type);
     showForm(jobWindow);
 }