private void IncludeListOnExcludedWindowRemoving(ExcludedWindow includedWindow) { if (includedWindow.CheckWindow(_skinWindow.Parent)) { _skinWindow.Dispose(); } }
private void ExcludeListOnExcludedWindowRemoving(ExcludedWindow excludedWindow) { if (excludedWindow.CheckWindow(_skinWindow.Parent) && excludedWindow.HasSkin) { _skinWindow.Skin = Settings.Settings.Skin; } }
private void Add_Click() { ExclusionDialogue NewDialgue = new ExclusionDialogue(); NewDialgue.ShowDialog(this); if (NewDialgue.DialogResult == DialogResult.OK) { ExcludedWindow NewInfo = NewDialgue.ExcludeInfo; List.Add(NewInfo); RebuildList(); } }
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); }
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); }
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; } } }
private void SettingsOnExclusionListAdded(ExcludedWindow excludedWindow) { if (excludedWindow.CheckWindow(_skinWindow.Parent)) { if (excludedWindow.HasSkin) { _skinWindow.Skin = excludedWindow.Skin; } else { _skinWindow.Dispose(); } } }