示例#1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            WinAlarmDemo win = new WinAlarmDemo();

            win.Owner = this;
            win.Show();
        }
示例#2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Window win = new WinAlarmDemo();

            win.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            win.Owner = this;
            win.Show();
        }