예제 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (!SettingWindow.IsClosed)
     {
         SettingWindow.ShowInTaskbar = true;
         SettingWindow.Show();
     }
     Close();
 }
예제 #2
0
 private void T_Elapsed(object sender, ElapsedEventArgs e)
 {
     if ((DateTime.Now - WindowOpenTime) >= SettingWindow.BlackScreenTime)
     {
         Dispatcher.BeginInvoke(new Action(() =>
         {
             t.Enabled = false;
             Close();
             if (!SettingWindow.IsClosed)
             {
                 SettingWindow.WindowState   = WindowState.Minimized;
                 SettingWindow.ShowInTaskbar = true;
                 SettingWindow.Show();
             }
         }));
     }
 }
예제 #3
0
        private void OnSettingsClicked(object sender, RoutedEventArgs e)
        {
            var settingWindow = new SettingWindow();

            settingWindow.Show();
        }