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

            this.Close();
            calc.ShowDialog();
        }
        private void BtnCalc_Click(object sender, RoutedEventArgs e)
        {
            CalculateWindow calculateWindow = new CalculateWindow
            {
                Owner = this
            };

            calculateWindow.ShowDialog();
        }