예제 #1
0
        private void CreateSchedule()
        {
            frmSchedule  frm    = new frmSchedule(m_Data, m_Tasks, null, true);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                SaveDataStorage();
                LoadTasks();
            }
            frm.Close();
        }
예제 #2
0
        private void toolEdit_Click(object sender, EventArgs e)
        {
            if (lvwTasks.SelectedItems.Count == 0)
            {
                return;
            }

            Task task = m_Tasks.OpenTask(lvwTasks.SelectedItems[0].Text);

            DataStorage.JobRow job = m_Data.Job.FindByID(Convert.ToInt32(task.Parameters));
            task.Close();

            frmSchedule  frm    = new frmSchedule(m_Data, m_Tasks, job, false);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                //Reload all tasks
                LoadTasks();
            }

            frm.Close();
        }
예제 #3
0
        private void toolEdit_Click(object sender, EventArgs e)
        {
            if (lvwTasks.SelectedItems.Count == 0) { return; }

            Task task = m_Tasks.OpenTask(lvwTasks.SelectedItems[0].Text);
            DataStorage.JobRow job = m_Data.Job.FindByID(Convert.ToInt32(task.Parameters));
            task.Close();

            frmSchedule frm = new frmSchedule(m_Data, m_Tasks, job, false);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                //Reload all tasks
                LoadTasks();
            }

            frm.Close();
        }
예제 #4
0
        private void CreateSchedule()
        {
            frmSchedule frm = new frmSchedule(m_Data, m_Tasks, null, true);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                SaveDataStorage();
                LoadTasks();
            }
            frm.Close();
        }