private void AddLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, false, ""); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) ConstraintsList.Items.Add( getFunc.FunctionBox.Text); }
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 AddLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, false, ""); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { ConstraintsList.Items.Add(getFunc.FunctionBox.Text); } }
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 EditLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (ConstraintsList.SelectedItem == null) { return; } int index = ConstraintsList.SelectedIndex; InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, false, (string)ConstraintsList.SelectedItem); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { ConstraintsList.Items.RemoveAt(index); ConstraintsList.Items.Insert(index, getFunc.FunctionBox.Text); } }
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 EditLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (ConstraintsList.SelectedItem == null) return; int index = ConstraintsList.SelectedIndex; InputFunction getFunc = new InputFunction(Main, (int)DimensionBox.Value, false, (string)ConstraintsList.SelectedItem); getFunc.ShowDialog(); if (getFunc.ResultFunction != null) { ConstraintsList.Items.RemoveAt(index); ConstraintsList.Items.Insert(index, getFunc.FunctionBox.Text); } }