Ejemplo n.º 1
0
        private void btnAddSchedule_Click(object sender, EventArgs e)
        {
            string job = SelectJobForm.Run();

            if (job != null)
            {
                m_conn.ExecuteNonQuery(String.Format("insert into Job (JobFile, CreatedAt) values ('{0}', '{1}')", job.Replace("'", "''"), DateTime.Now.ToString("s")));
                CheckServiceRunning();
                ReloadData();
            }
        }
 private void JobButton_Click(object sender, EventArgs e)
 {
     using (var form = new SelectJobForm())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             jobID   = form.JobID;
             jobName = form.JobName;
         }
     }
     labelJob.Text = "Selected Job: " + jobName;
 }