private void AddFunctionLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, true, ""); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) FunctionList.Items.Add(getFunc.GetFunctionText()); }
private void AddFunctionLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, true, ""); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { FunctionList.Items.Add(getFunc.GetFunctionText()); } }
private void EditFunctionLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (FunctionList.SelectedItem == null) { return; } int index = FunctionList.SelectedIndex; InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, true, (string)FunctionList.SelectedItem); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { FunctionList.Items.RemoveAt(index); FunctionList.Items.Insert(index, getFunc.GetFunctionText()); } }
private void EditFunctionLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (FunctionList.SelectedItem == null) return; int index = FunctionList.SelectedIndex; InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, true, (string)FunctionList.SelectedItem); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { FunctionList.Items.RemoveAt(index); FunctionList.Items.Insert(index, getFunc.GetFunctionText()); } }