Exemplo n.º 1
0
        public override void SaveColorsForm()
        {
            iceChatHighLites.listHighLites.Clear();

            foreach (ListViewItem item in listHighLite.Items)
            {
                HighLiteItem hli = new HighLiteItem
                {
                    Match        = item.Text,
                    Command      = item.SubItems[1].Text,
                    Color        = Convert.ToInt32(item.SubItems[2].Text),
                    Enabled      = item.Checked,
                    NicksInclude = item.SubItems[4].Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)
                };
                ;
                hli.NicksExclude = item.SubItems[5].Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);;

                hli.FlashTab = Convert.ToBoolean(item.SubItems[3].Text);
                hli.Sound    = item.SubItems[6].Text;

                iceChatHighLites.AddHighLight(hli);
            }

            SaveHighLites();
        }
Exemplo n.º 2
0
        public override void SaveColorsForm()
        {
            iceChatNickHighLites.listHighLites.Clear();

            foreach (ListViewItem item in listHighLite.Items)
            {
                HighLiteItem hli = new HighLiteItem();
                hli.Match     = item.Text;
                hli.Color     = Convert.ToInt32(item.SubItems[1].Text);
                hli.MatchHost = item.SubItems[2].Text;

                hli.Enabled = item.Checked;

                iceChatNickHighLites.AddHighLight(hli);
            }

            SaveHighLites();
        }