コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: tempbottle/INCC6
        private void MaintainCollarClick(object sender, RoutedEventArgs e)
        {
            //HN -- Cross ref shown first, next button takes you to IDDCollarCal
            IDDCollarCrossRef f = new IDDCollarCrossRef();

            f.ShowDialog();
        }
コード例 #2
0
        private void BackBtn_Click(object sender, EventArgs e)
        {
            StoreChanges();
            IDDCollarCrossRef CrossRef = new IDDCollarCrossRef(col, modified);

            CrossRef.Show();
            this.Close();
        }
コード例 #3
0
ファイル: IDDCollarCal.cs プロジェクト: radtek/INCC6
        private void BackBtn_Click(object sender, EventArgs e)
        {
            StoreChanges();
            IDDCollarCrossRef CrossRef = new IDDCollarCrossRef(-1 /*do nothing to mode here*/, modified, col);

            CrossRef.StartPosition = FormStartPosition.CenterScreen;
            CrossRef.Show();
            this.Close();
        }
コード例 #4
0
ファイル: MainWindow.xaml.cs プロジェクト: radtek/INCC6
        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();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
ファイル: MainWindow.xaml.cs プロジェクト: tempbottle/INCC6
 private void MaintainCollarClick(object sender, RoutedEventArgs e)
 {
     //HN -- Cross ref shown first, next button takes you to IDDCollarCal
     IDDCollarCrossRef f = new IDDCollarCrossRef();
     f.ShowDialog();
 }
コード例 #7
0
ファイル: MainWindow.xaml.cs プロジェクト: hnordquist/INCC6
        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();
        }