Esempio n. 1
0
        void OnTextChanged(object sender, EventArgs e)
        {
            if (m_InnerFlag)
            {
                return;
            }
            Control   box     = sender as Control;
            TempAddon tempAdd = CurrentAddon;

            if (box.Name == "textBoxName")
            {
                tempAdd.Name = box.Text;
            }
            else if (box.Name == "textBoxPath")
            {
                tempAdd.Path = box.Text;
            }
            else if (box.Name == "comboBoxFunction")
            {
                tempAdd.Function = box.Text;
            }

            if (box.Name == "textBoxName")
            {
                m_InnerFlag = true;
                listBoxAddon.Items[listBoxAddon.SelectedIndex] = tempAdd;
                box.Focus();
                m_InnerFlag = false;
            }
        }
Esempio n. 2
0
        void comboBoxType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (m_InnerFlag)
            {
                return;
            }
            TempAddon tempAdd = CurrentAddon;

            tempAdd.Type = (comboBoxType.SelectedItem as WrapAddonType).Type;
        }
Esempio n. 3
0
        void comboBoxFunction_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (m_InnerFlag)
            {
                return;
            }
            TempAddon tempAdd = CurrentAddon;

            tempAdd.Function = comboBoxFunction.Text;
        }