コード例 #1
0
        private void BtnCalc_Click(object sender, RoutedEventArgs e)
        {
            MainWindow      main = Owner as MainWindow;
            CalculateWindow calc = new CalculateWindow();

            this.Close();
            calc.ShowDialog();
        }
コード例 #2
0
        private void BtnCalc_Click(object sender, RoutedEventArgs e)
        {
            CalculateWindow calculateWindow = new CalculateWindow
            {
                Owner = this
            };

            calculateWindow.ShowDialog();
        }