public FormHighLite(HighLiteItem hli, int index) { InitializeComponent(); colorPicker = new ColorButtonArray(panelColorPicker); colorPicker.OnClick += new ColorButtonArray.ColorSelected(colorPicker_OnClick); this.highLiteItem = hli; this.listIndex = index; textNickMatch.Text = highLiteItem.Match; textHostMatch.Text = highLiteItem.MatchHost; if (highLiteItem.Color == 0) { colorPicker.SelectedColor = 1; highLiteItem.Color = 1; } else { colorPicker.SelectedColor = highLiteItem.Color; } textNickMatch.ForeColor = IrcColor.colors[highLiteItem.Color]; textHostMatch.ForeColor = IrcColor.colors[highLiteItem.Color]; textNickMatch.Tag = highLiteItem.Color; }
public FormHighLite(HighLiteItem hli, int index) { InitializeComponent(); colorPicker = new ColorButtonArray(panelColorPicker); colorPicker.OnClick += new ColorButtonArray.ColorSelected(ColorPicker_OnClick); textCommand.KeyDown += new KeyEventHandler(TextCommand_KeyDown); this.highLiteItem = hli; this.listIndex = index; textHiLite.Text = highLiteItem.Match; textCommand.Text = highLiteItem.Command; if (highLiteItem.Color == 0) { colorPicker.SelectedColor = 1; highLiteItem.Color = 1; } else { colorPicker.SelectedColor = highLiteItem.Color; } if (hli.NicksInclude != null) { textInclude.Text = string.Join(" ", hli.NicksInclude); } if (hli.NicksExclude != null) { textExclude.Text = string.Join(" ", hli.NicksExclude); } textHiLite.ForeColor = IrcColor.colors[highLiteItem.Color]; textHiLite.Tag = highLiteItem.Color; textPlaySound.Text = highLiteItem.Sound; checkFlashTab.Checked = highLiteItem.FlashTab; }
public FormHighLite(HighLiteItem hli, int index) { InitializeComponent(); colorPicker = new ColorButtonArray(panelColorPicker); colorPicker.OnClick += new ColorButtonArray.ColorSelected(colorPicker_OnClick); this.highLiteItem = hli; this.listIndex = index; textHiLite.Text = highLiteItem.Match; textCommand.Text = highLiteItem.Command; if (highLiteItem.Color == 0) { colorPicker.SelectedColor = 1; highLiteItem.Color = 1; } else { colorPicker.SelectedColor = highLiteItem.Color; } textHiLite.ForeColor = IrcColor.colors[highLiteItem.Color]; textHiLite.Tag = highLiteItem.Color; checkFlashTab.Checked = highLiteItem.FlashTab; }
public FormColors(IceChatMessageFormat MessageFormat, IceChatColors IceChatColors) { InitializeComponent(); this.Load += new EventHandler(FormColors_Load); //add the events for the Tab Bar Color Picker this.pictureTabCurrent.Click += new EventHandler(OnColor_Click); this.pictureTabMessage.Click += new EventHandler(OnColor_Click); this.pictureTabAction.Click += new EventHandler(OnColor_Click); this.pictureTabJoin.Click += new EventHandler(OnColor_Click); this.pictureTabPart.Click += new EventHandler(OnColor_Click); this.pictureTabQuit.Click += new EventHandler(OnColor_Click); this.pictureTabServer.Click += new EventHandler(OnColor_Click); this.pictureTabServerNotice.Click += new EventHandler(OnColor_Click); this.pictureTabBuddyNotice.Click += new EventHandler(OnColor_Click); this.pictureTabOther.Click += new EventHandler(OnColor_Click); this.pictureTabDefault.Click += new EventHandler(OnColor_Click); //add the events for the Nick Color Picker this.pictureAdmin.Click += new EventHandler(OnColor_Click); this.pictureOwner.Click += new EventHandler(OnColor_Click); this.pictureOperator.Click += new EventHandler(OnColor_Click); this.pictureHalfOperator.Click += new EventHandler(OnColor_Click); this.pictureVoice.Click += new EventHandler(OnColor_Click); this.pictureDefault.Click += new EventHandler(OnColor_Click); this.pictureConsole.Click += new EventHandler(OnColor_Click); this.pictureChannel.Click += new EventHandler(OnColor_Click); this.pictureQuery.Click += new EventHandler(OnColor_Click); this.pictureNickList.Click += new EventHandler(OnColor_Click); this.pictureServerList.Click += new EventHandler(OnColor_Click); this.pictureTabBarCurrent1.Click += new EventHandler(OnColor_Click); this.pictureTabBarCurrent2.Click += new EventHandler(OnColor_Click); this.pictureTabBarOther1.Click += new EventHandler(OnColor_Click); this.pictureTabBarOther2.Click += new EventHandler(OnColor_Click); this.pictureTabBackground.Click += new EventHandler(OnColor_Click); this.pictureTabBarHover1.Click += new EventHandler(OnColor_Click); this.pictureTabBarHover2.Click += new EventHandler(OnColor_Click); this.picturePanelHeaderBG1.Click += new EventHandler(OnColor_Click); this.picturePanelHeaderBG2.Click += new EventHandler(OnColor_Click); this.picturePanelHeaderForeColor.Click += new EventHandler(OnColor_Click); this.pictureUnreadTextMarkerColor.Click += new EventHandler(OnColor_Click); this.pictureToolBar.Click += new EventHandler(OnColor_Click); this.pictureMenuBar.Click += new EventHandler(OnColor_Click); this.pictureInputBox.Click += new EventHandler(OnColor_Click); this.pictureInputBoxFore.Click += new EventHandler(OnColor_Click); this.pictureChannelList.Click += new EventHandler(OnColor_Click); this.pictureChannelListFore.Click += new EventHandler(OnColor_Click); this.pictureStatusBar.Click += new EventHandler(OnColor_Click); this.pictureStatusFore.Click += new EventHandler(OnColor_Click); this.pictureHyperlink.Click += new EventHandler(OnColor_Click); this.iceChatColors = IceChatColors; UpdateColorSettings(); messageIdentifiers = new Hashtable(); AddMessageIdentifiers(); colorPicker = new ColorButtonArray(panelColorPicker); colorPicker.OnClick += new ColorButtonArray.ColorSelected(colorPicker_OnClick); treeMessages.AfterSelect += new TreeViewEventHandler(treeMessages_AfterSelect); textRawMessage.TextChanged+=new EventHandler(textRawMessage_TextChanged); textRawMessage.KeyDown += new KeyEventHandler(textRawMessage_KeyDown); listIdentifiers.DoubleClick += new EventHandler(listIdentifiers_DoubleClick); treeBasicMessages.AfterSelect += new TreeViewEventHandler(treeBasicMessages_AfterSelect); tabMessages.SelectedTab = tabBasic; iceChatMessages = MessageFormat; textFormattedText.SingleLine = true; textFormattedText.NoEmoticons = true; textFormattedBasic.SingleLine = true; textFormattedBasic.NoEmoticons = true; //populate Message Settings UpdateMessageSettings(); //load any plugin addons foreach (Plugin p in FormMain.Instance.LoadedPlugins) { IceChatPlugin ipc = p as IceChatPlugin; if (ipc != null) { if (ipc.plugin.Enabled == true) ipc.plugin.LoadColorsForm(this.tabControlColors); } } ApplyLanguage(); if (FormMain.Instance.IceChatOptions.Theme != null) { foreach (ThemeItem theme in FormMain.Instance.IceChatOptions.Theme) { ComboItem item = new ComboItem(); item.ThemeName = theme.ThemeName; item.ThemeType = theme.ThemeType; comboTheme.Items.Add(item); } } if (FormMain.Instance.IceChatPluginThemes != null) { foreach (IThemeIceChat theme in FormMain.Instance.IceChatPluginThemes) { ComboItem item = new ComboItem(); item.ThemeName = theme.Name; item.ThemeType = "Plugin"; item.FileName = theme.FileName; comboTheme.Items.Add(item); } } comboTheme.Text = FormMain.Instance.IceChatOptions.CurrentTheme; this.comboTheme.SelectedIndexChanged += new System.EventHandler(this.comboTheme_SelectedIndexChanged); }
public FormHighLite(HighLiteItem hli, int index) { InitializeComponent(); colorPicker = new ColorButtonArray(panelColorPicker); colorPicker.OnClick += new ColorButtonArray.ColorSelected(colorPicker_OnClick); textCommand.KeyDown += new KeyEventHandler(textCommand_KeyDown); this.highLiteItem = hli; this.listIndex = index; textHiLite.Text = highLiteItem.Match; textCommand.Text = highLiteItem.Command; if (highLiteItem.Color == 0) { colorPicker.SelectedColor = 1; highLiteItem.Color = 1; } else { colorPicker.SelectedColor = highLiteItem.Color; } if (hli.NicksInclude != null) textInclude.Text = string.Join(" ", hli.NicksInclude); if (hli.NicksExclude != null) textExclude.Text = string.Join(" ", hli.NicksExclude); textHiLite.ForeColor = IrcColor.colors[highLiteItem.Color]; textHiLite.Tag = highLiteItem.Color; textPlaySound.Text = highLiteItem.Sound; checkFlashTab.Checked = highLiteItem.FlashTab; }