//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(); }
//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(); } }