GetFunctionText() public method

public GetFunctionText ( ) : string
return string
Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
            }
        }
Exemplo n.º 3
0
        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());
            }
        }
Exemplo n.º 4
0
        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());
            }
        }