Esempio n. 1
0
 private void SettingsOnInclusionListAdded(ExcludedWindow newIncludedWindow)
 {
     if (!newIncludedWindow.CheckWindow(_skinWindow.Parent))
     {
         // This means that this is the first addition of included window, all non included windows should be diposed
         if (Settings.Settings.IncludeList.Count == 1)
         {
             _skinWindow.Dispose();
         }
     }
     else
     {
         if (newIncludedWindow.HasSkin)
         {
             _skinWindow.Skin = newIncludedWindow.Skin;
         }
     }
 }
Esempio n. 2
0
 private void OnProcessCloseHandler(object sender, EventArgs e)
 {
     _skinWindow.Dispose();
 }
Esempio n. 3
0
 public void WindowsHookOnWindowClosed(IntPtr windowHandle, EventArgs args)
 {
     _skinWindow.Dispose();
 }