private void AcquireVerificationClick(object sender, RoutedEventArgs e) { IDDAcquireAssay f = new IDDAcquireAssay(); WinPos childPos = main.GetChildPos(f.Height, f.Width); f.StartPosition = System.Windows.Forms.FormStartPosition.Manual; if (childPos.height < f.Height || childPos.width < f.Width) // Resize if it will go off screen. { f.Size = new System.Drawing.Size((int)childPos.width, (int)childPos.height); } f.Location = new System.Drawing.Point((int)childPos.left, (int)childPos.top); f.ShowDialog(); }
private void AcquireVerificationClick(object sender, RoutedEventArgs e) { AcquireParameters ap = Integ.GetCurrentAcquireParams(); Detector det = new Detector(); INCCAnalysisParams.collar_combined_rec parms = new INCCAnalysisParams.collar_combined_rec(); Integ.GetCurrentAcquireDetectorPair(ref ap, ref det); NormParameters npp = Integ.GetCurrentNormParams(det); AnalysisMethods am = Integ.GetMethodSelections(ap); if (am != null) { if (Integ.GetMethodSelections(det.Id.DetectorId, ap.ItemId.material).Has(AnalysisMethod.CollarAmLi)) { IDDAcquireAssay f = new IDDAcquireAssay(); DialogResult result = f.ShowDialog(); f.Close(); if (result == System.Windows.Forms.DialogResult.OK) { IDDCollarItemData data = new IDDCollarItemData(); result = data.ShowDialog(); data.Close(); } if (result == System.Windows.Forms.DialogResult.OK) { IDDK5CollarItemData k5 = new IDDK5CollarItemData(parms, true); result = k5.ShowDialog(); k5.Close(); } if (result == System.Windows.Forms.DialogResult.OK) { IDDCollarAcquire dlg = new IDDCollarAcquire(npp); dlg.ShowDialog(); } } else { IDDAcquireAssay f = new IDDAcquireAssay(); f.ShowDialog(); } } else { System.Windows.Forms.MessageBox.Show("You must define at least one analysis method.", "ERROR"); } }
private void AcquireVerificationClick(object sender, RoutedEventArgs e) { IDDAcquireAssay f = new IDDAcquireAssay(); f.ShowDialog(); }
private void AcquireVerificationClick(object sender, RoutedEventArgs e) { IDDAcquireAssay f = new IDDAcquireAssay(); WinPos childPos = main.GetChildPos(f.Height,f.Width); f.StartPosition = System.Windows.Forms.FormStartPosition.Manual; if (childPos.height < f.Height || childPos.width < f.Width) // Resize if it will go off screen. f.Size = new System.Drawing.Size((int)childPos.width, (int)childPos.height); f.Location = new System.Drawing.Point((int)childPos.left, (int)childPos.top); f.ShowDialog(); }