Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            string str1 = CommonFunctions.GetNewName("New Menu", Menues);

            Menues.Add(str1);
            textBox1.Text = str1;
            SelectedMenu  = str1;
            CommonFunctions.FillList(listBox1, Menues);
            CommonFunctions.SelectList(listBox1, str1);
        }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            var newName = CommonFunctions.GetNewName("Tab", TabsList);

            textBox1.Text = newName;
            SelectedTab   = newName;
            TabsList.Add(newName);
            CommonFunctions.FillList(listBox1, TabsList);
            CommonFunctions.SelectList(listBox1, newName);
        }
Ejemplo n.º 3
0
        private void button7_Click(object sender, EventArgs e)
        {
            NgRadio ch = new NgRadio();
            var     ss = RadioBoxes.Select(x => x.Name).ToList();

            ch.Name          = CommonFunctions.GetNewName("Radio Button Lookup", ss);
            SelectedCheckBox = ch;
            textBox1.Text    = ch.Name;
            RadioBoxes.Add(ch);
            FillCheckBoxList();
            CommonFunctions.SelectList(listBox1, ch.Name);
        }
Ejemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            NGCombo c  = new NGCombo();
            var     ss = CombosList.Select(x => x.Name).ToList();

            c.Name        = CommonFunctions.GetNewName("NewComboService", ss);
            SelectedCombo = c;
            CombosList.Add(c);
            FillList();
            textBox3.Text = c.Name;
            CommonFunctions.SelectList(listBox1, c.Name);
        }
Ejemplo n.º 5
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            NGOPT opt = new NGOPT();

            opt.Key = "Key";
            var s = SelectedCheckBox.Options.Select(x => x.Value).ToList();

            opt.Value   = CommonFunctions.GetNewName("Value", s);
            SelectedOpt = opt;
            FillTexts();
            SelectedCheckBox.Options.Add(opt);
            FillLst();
            CommonFunctions.SelectList(listBox2, opt.Value);
        }
Ejemplo n.º 6
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            NGOPT opt = new NGOPT();
            var   ss  = SelectedCombo.Options.Select(x => x.Key).ToList();

            opt.Key   = CommonFunctions.GetNewName("Key", ss);
            ss        = SelectedCombo.Options.Select(x => x.Value).ToList();
            opt.Value = CommonFunctions.GetNewName("Value", ss);
            SelectedCombo.Options.Add(opt);
            SelectedOption = opt;
            FillTexts();
            FillOpt();
            FillOptList();

            CommonFunctions.SelectList(listBox2, SelectedOption.Key);
        }