private void ProductionLine_Click(object sender, EventArgs e) { frmProcess ProcessLine = new frmProcess(); ProcessLine.MdiParent = this; ProcessLine.WindowState = FormWindowState.Maximized; ProcessLine.Show(); }
private void menuItem_process_Click(object sender, System.EventArgs e) { try { var process_frm = new frmProcess(ref mobj_config); process_frm.PeakProcessorParameters = mobjPeakParameters; process_frm.MassTransformParameters = mobjTransformParameters; process_frm.FTICRPreProcessParameters = mobjFTICRRawPreProcessParameters; process_frm.DTAGenerationParameters = mobjDTAGenerationParameters; process_frm.Show(); process_frm.MdiParent = this; } catch (Exception ex) { MessageBox.Show(this, ex.Message + ex.StackTrace); } }
public async Task GoToAssign() { looper.Show(); try { if (thisItem.ProcessId != null) { var processKeeper = new ProcessesKeeper(); await processKeeper.GetByProcessId((int)thisItem.ProcessId); frmProcess FrmProcess = new frmProcess(processKeeper.Items.FirstOrDefault(), ParentForm); FrmProcess.Show(); } else if (thisItem.PlaceId != null) { var placeKeeper = new PlacesKeeper(); await placeKeeper.Refresh(query : $"PlaceId={thisItem.PlaceId}"); frmPlace FrmPlace = new frmPlace(placeKeeper.Items.FirstOrDefault(), ParentForm); FrmPlace.Show(); } else if (thisItem.PartId != null) { var partKeeper = new PartKeeper(); await partKeeper.Refresh(query : $"PartId={thisItem.PartId}"); frmPart FrmPart = new frmPart(partKeeper.Items.FirstOrDefault(), ParentForm); FrmPart.Show(); } } catch (Exception ex) { throw; } finally { looper.Hide(); } }
private void mnuPAddNew_Click(object sender, EventArgs e) { //Open DataProcess form to add a new Process frmProcess f = new frmProcess(); f.process = new STELLAR.DATA.Process("New Process"); f.Show(this); refreshListView(); }
private void dropDownCommand12_Click(object sender, CommandEventArgs e) { frmProcess form = new frmProcess(); form.Show(); }