Beispiel #1
0
        /// <summary>
        /// Edit Job From Jobs List
        /// </summary>
        protected override void Edit()
        {
            Job j = BaseListWindow.listviewCurrent.SelectedItem as Job;

            if (j != null)
            {
                JobCreation jcw = new JobCreation(j);
                jcw.ShowDialog();
                Files.Instance.SaveJobFile();
                RefreshListView(Jobs.Instance);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Add Job To Jobs List
        /// </summary>
        protected override void Add()
        {
            JobCreation jcw = new JobCreation();

            jcw.ShowDialog();
            if (jcw.Exit == Enum.ExitStatus.Ok)
            {
                Jobs.Instance.AddObject(jcw.Info);
                Files.Instance.SaveJobFile();
                RefreshListView(Jobs.Instance);
            }
        }