Example #1
0
        private void addNewFilterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabContent NewTabContentObj;
            string     Name;
            FilterList List;
            bool       LinkState;

            UserFilterObject UserFilter;

            frmNewFilter filter = new frmNewFilter();

            filter.ShowDialog();

            if (filter.GetFilterList() == null)
            {
                return;
            }

            Name      = filter.GetFilterName();
            List      = filter.GetFilterList();
            LinkState = filter.GetLinkState();

            UserFilter = new UserFilterObject(List, Name, LinkState);

            UserFilters.Add(UserFilter);
            UserFilterObject.SaveFilters(UserFilters, "filter.flt");


            NewTabContentObj = AddNewTab(Name, true);

            logcat.AddSlot(Name, List).LinkUi(NewTabContentObj);
        }
Example #2
0
        private void addNewFilterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabContent NewTabContentObj;
            string Name;
            FilterList List;
            bool LinkState;

            UserFilterObject UserFilter;

            frmNewFilter filter = new frmNewFilter();
            filter.ShowDialog();

            if (filter.GetFilterList() == null)
                return;

            Name = filter.GetFilterName();
            List = filter.GetFilterList();
            LinkState = filter.GetLinkState();

            UserFilter = new UserFilterObject(List, Name, LinkState);

            UserFilters.Add(UserFilter);
            UserFilterObject.SaveFilters(UserFilters, "filter.flt");

            NewTabContentObj = AddNewTab(Name, true);

            logcat.AddSlot(Name, List).LinkUi(NewTabContentObj);
        }