//EVENT HANDLER FOR EDITING AN EXISTING ORDER private void cmboPO_SelectedIndexChanged(object sender, EventArgs e) { string[] tempSplit = cmboService.Text.Split('|'); PartOrder editOrder = new PartOrder(tempSplit[0], tempSplit[1]); editOrder.ShowDialog(); }
/// /// EVENT HANDLERS FOR BUTTON CLICKS AND JOB SELECTS /// //EVENT HANDLER FOR OPENING PARTORDER FORM private void pbAddOrder_Click(object sender, EventArgs e) { if (cmboJob.Enabled == true) { PartOrder theOrder = new PartOrder(); theOrder.ShowDialog(); } if (cmboJob.Enabled == false) { PartOrder theOrder = new PartOrder(theJob); theOrder.ShowDialog(); } }