Ejemplo n.º 1
0
        private void SaveOptionCategory_MouseClick(object sender, MouseEventArgs e)
        {
            this.Hide();
            //Temporary Strings holding values from textbox
            string optionSetTitle = OptionSetTitle.Text;

            //Creates new OptionSet
            OptionSet newOptionSet = new OptionSet();

            //Calls constructors
            newOptionSet.GetOptionSetTitle(optionSetTitle);

            //Creates and displays new OptionForm
            SetOptionsForm OptionForm1 = new SetOptionsForm();

            OptionForm1.ShowDialog();
        }
Ejemplo n.º 2
0
        /*int OptionSetNumber;
         * protected int AddOptionSet(int OptionCounter)
         * {
         *  OptionSetNumber = OptionCounter ;
         *
         *  return 1;
         *
         * }
         */
        private void AddOptiontoSet_MouseClick(object sender, MouseEventArgs e)
        {
            this.Hide();
            //store textbox values in temporary strings.
            string optionTitle   = OptionTitleTextBox.Text;
            string optionMessage = OptionMessageTextBox.Text;

            //create new Obejct Option
            Option newOption = new Option();

            //Call Option contructors
            newOption.GetOptionTitle(optionTitle);
            newOption.GetOptionMessage(optionMessage);

            //Send Option to OptionSet


            //creates new form
            SetOptionsForm OptionForm2 = new SetOptionsForm();

            OptionForm2.ShowDialog();
        }