Beispiel #1
0
        private void SetFilterSet()
        {
            string list = cc.GetChecked(reserved);

            cc.SetChecked(list.Equals("All"), 0, 1);
            cc.SetChecked(list.Equals("None"), 1, 1);
        }
Beispiel #2
0
        public void FilterButton(string db, Point p, Size s, Color back, Color fore, Form parent, List <string> list)
        {
            if (cc == null)
            {
                dbstring = db;
                cc       = new ExtendedControls.CheckedListControlCustom();
                cc.Items.Add("All");
                cc.Items.Add("None");

                cc.Items.AddRange(list.ToArray());

                cc.SetChecked(SQLiteDBClass.GetSettingString(dbstring, "All"));
                SetFilterSet();

                cc.FormClosed     += FilterClosed;
                cc.CheckedChanged += FilterCheckChanged;
                cc.PositionSize(p, s);
                cc.SetColour(back, fore);
                cc.Show(parent);
            }
            else
            {
                cc.Close();
            }
        }
        public void FilterButton(string db, Control ctr, Color back, Color fore, Form parent, List<string> list )
        {
            if (cc == null)
            {
                dbstring = db;
                cc = new ExtendedControls.CheckedListControlCustom();
                cc.Items.Add("All");
                cc.Items.Add("None");

                if (selectedlist != null)
                    cc.Items.Add(selectedlistname);

                cc.Items.AddRange(list.ToArray());

                cc.SetChecked(SQLiteDBClass.GetSettingString(dbstring, "All"));
                SetFilterSet();

                cc.FormClosed += FilterClosed;
                cc.CheckedChanged += FilterCheckChanged;
                cc.PositionBelow(ctr, new Size(ctr.Width*2, 400));
                cc.SetColour(back,fore);
                cc.Show(parent);
            }
            else
                cc.Close();
        }
Beispiel #4
0
        public void FilterButton(string db, Control ctr, Color back, Color fore, Form parent, List <string> list)
        {
            if (cc == null)
            {
                dbstring = db;
                cc       = new ExtendedControls.CheckedListControlCustom();
                cc.Items.Add("All");
                cc.Items.Add("None");

                if (selectedlist != null)
                {
                    cc.Items.Add(selectedlistname);
                }

                cc.Items.AddRange(list.ToArray());

                cc.SetChecked(SQLiteDBClass.GetSettingString(dbstring, "All"));
                SetFilterSet();

                cc.FormClosed     += FilterClosed;
                cc.CheckedChanged += FilterCheckChanged;
                cc.PositionBelow(ctr, new Size(ctr.Width * 2, 400));
                cc.SetColour(back, fore);
                cc.Show(parent);
            }
            else
            {
                cc.Close();
            }
        }
        private void SetFilterSet()
        {
            string list = cc.GetChecked(reserved);

            //Console.WriteLine("List {0}", list);
            cc.SetChecked(list.Equals("All"), 0, 1);
            cc.SetChecked(list.Equals("None"), 1, 1);

            if (selectedlist != null)
            {
                cc.SetChecked(list.Equals(selectedlist), 2, 1);
            }
        }
Beispiel #6
0
        private void SetFilterSet()
        {
            string list = cc.GetChecked(ReservedEntries);

            //Console.WriteLine("List {0}", list);
            cc.SetChecked(list.Equals("All"), 0, 1);
            cc.SetChecked(list.Equals("None"), 1, 1);

            int p = 2;

            foreach (var eo in extraoptions)
            {
                cc.SetChecked(list.Equals(eo.Item2), p++, 1);
            }
        }