Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (jobform jobfinder = new jobform())
     {
         var result = jobfinder.ShowDialog();
         if (result == DialogResult.OK)
         {
             MessageBox.Show("Success in search! Congratulations.");
         }
     }
 }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (jobform jobfinder = new jobform())
     {
         var result = jobfinder.ShowDialog();
         if (result == DialogResult.OK)
         {
             uxJobID.Text            = Convert.ToString(jobfinder.jobid);
             uxProcessName.Text      = jobfinder.processid;
             uxProcessName.Enabled   = false;
             uxdateTimePicker1.Value = jobfinder.date;
             uxqty.Value             = jobfinder.qty;
             uxqty.Enabled           = false;
             uxPartProduced.Enabled  = false;
             uxcompleted.Checked     = jobfinder.complete;
             uxSubmit.Enabled        = true;
         }
     }
 }