private void editFunctionToolStripMenuItem_Click(object sender, EventArgs e) { AddFunction addFunction = new AddFunction(); addFunction.InitializeFunction = functionList.FunctionList.Current as Function; addFunction.IsEditFunction = true; addFunction.IsValidated = true; addFunction.DataSource = functionList.FunctionList; addFunction.FunctionOK += this.addFunction_FunctionOK; addFunction.ShowDialog(sender as IWin32Window); }
private void addFunctionToolStripMenuItem_Click(object sender, EventArgs e) { AddFunction addFunction = new AddFunction(); addFunction.IsValidated = true; addFunction.DataSource = functionList.FunctionList; addFunction.BackGroundAxisColor = SettingsForm.BackGroundColor; addFunction.FunctionOK += addFunction_FunctionOK; addFunction.ShowDialog(sender as IWin32Window); }