Exemplo n.º 1
0
 private void IncludeListOnExcludedWindowRemoving(ExcludedWindow includedWindow)
 {
     if (includedWindow.CheckWindow(_skinWindow.Parent))
     {
         _skinWindow.Dispose();
     }
 }
Exemplo n.º 2
0
 private void ExcludeListOnExcludedWindowRemoving(ExcludedWindow excludedWindow)
 {
     if (excludedWindow.CheckWindow(_skinWindow.Parent) && excludedWindow.HasSkin)
     {
         _skinWindow.Skin = Settings.Settings.Skin;
     }
 }
Exemplo n.º 3
0
        private void Add_Click()
        {
            ExclusionDialogue NewDialgue = new ExclusionDialogue();

            NewDialgue.ShowDialog(this);

            if (NewDialgue.DialogResult == DialogResult.OK)
            {
                ExcludedWindow NewInfo = NewDialgue.ExcludeInfo;
                List.Add(NewInfo);
                RebuildList();
            }
        }
Exemplo n.º 4
0
        public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager)
        {
            ExcludedWindow exludeInfo = ExcludeList[window];

            if (exludeInfo != null)
            {
                if (exludeInfo.HasSkin)
                {
                    manager.AddSkinWindow(new SkinableWindowBorder(window, exludeInfo.Skin, true));
                }

                return(true);
            }

            return(false);
        }
Exemplo n.º 5
0
        private void Edit_Click()
        {
            if (ExcList.SelectedItems.Count > 0)
            {
                ExclusionDialogue EditDialogue = new ExclusionDialogue();
                ExcludedWindow    OldWindow    = List[ExcList.SelectedItems[0].SubItems[1].Text];

                EditDialogue.ExcludeInfo = OldWindow;
                EditDialogue.ShowDialog(this);

                if (EditDialogue.DialogResult == DialogResult.OK)
                {
                    List.Remove(OldWindow);
                    List.Add(EditDialogue.ExcludeInfo);
                    RebuildList();
                }
            }
        }
        public bool HandleNewWindow(TopLevelWindow window, BorderSkinningManager manager)
        {
            if (IncludeList.HasWindows)
            {
                ExcludedWindow included = IncludeList[window];

                if (included == null)
                {
                    return(true);
                }

                if (included.Skin != null)
                {
                    manager.AddSkinWindow(new SkinableWindowBorder(window, included.Skin, false));
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 7
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;
         }
     }
 }
Exemplo n.º 8
0
 private void SettingsOnExclusionListAdded(ExcludedWindow excludedWindow)
 {
     if (excludedWindow.CheckWindow(_skinWindow.Parent))
     {
         if (excludedWindow.HasSkin)
         {
             _skinWindow.Skin = excludedWindow.Skin;
         }
         else
         {
             _skinWindow.Dispose();
         }
     }
 }