Example #1
0
 private void addFuncButton_Click(object sender, EventArgs e)
 {
     var f = new ModifyFunctionForm();
     f.ShowDialog();
     if (f.Succesful)
     {
         this._isModified = true;
         this.FunctionsDescriptions.Add(f.FunctionDescription);
         this.refreshFuncs();
     }
 }
Example #2
0
        private void funcsListBox_DoubleClick(object sender, EventArgs e)
        {
            if (this.funcsListBox.SelectedIndex == -1)
            {
                return;
            }

            var f = new ModifyFunctionForm(this.FunctionsDescriptions[this.funcsListBox.SelectedIndex]);
            f.ShowDialog();
            if (f.Succesful)
            {
                this._isModified = true;
                this.FunctionsDescriptions[this.funcsListBox.SelectedIndex] = f.FunctionDescription;
                this.refreshFuncs();
            }
        }