Exemple #1
0
        //EVENT HANDLER FOR EDITING AN EXISTING OUTSIDE SERVICE
        private void cmboService_SelectedIndexChanged(object sender, EventArgs e)
        {
            string[]     tempSplit      = cmboService.Text.Split('|');
            ServiceOrder theServiceEdit = new ServiceOrder(tempSplit[0], tempSplit[1]);

            theServiceEdit.ShowDialog();
        }
Exemple #2
0
 //OPENS OUTSIDE SERVICE ORDER FORM
 private void pbAddService_Click(object sender, EventArgs e)
 {
     if (cmboJob.Enabled == true)
     {
         ServiceOrder theService = new ServiceOrder();
         theService.ShowDialog();
     }
     if (cmboJob.Enabled == false)
     {
         ServiceOrder theService = new ServiceOrder(theJob);
         theService.ShowDialog();
     }
 }