示例#1
0
        private void regizanClick(object sender, RoutedEventArgs e)
        {
            TaskWindow reg = new TaskWindow();

            reg.Show();
            reg.Owner = this;//теперь окно taskwindow  принадлежит mainwindow
        }
示例#2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            TaskWindow taskWindow = new TaskWindow();

            taskWindow.Show();
        }