Example #1
0
 private void ShowSetting(object sender, EventArgs e)
 {
     if (tw == null)
     {
         tw         = new ThemeWindow();
         tw.Closed += Tw_Closed;
     }
     tw.Show();
     tw.Activate();
     if (tw.WindowState == WindowState.Minimized)
     {
         tw.WindowState = WindowState.Normal;
     }
 }
Example #2
0
 private void Tw_Closed(object sender, EventArgs e)
 {
     tw.Closed -= Tw_Closed;
     tw         = null;
 }