private void MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(); f.ShowDialog(); }
private void MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(Integ.GetCurrentAcquireParams().collar_mode, false); f.StartPosition = FormStartPosition.CenterScreen; f.ShowDialog(); }
private void MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(); 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 MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(); f.ShowDialog(); }
private void MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(); 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(); }