Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        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);
        }
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 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.º 4
0
        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);
            }
        }
Exemplo n.º 5
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.º 6
0
        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);
            }
        }
Exemplo n.º 7
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.º 8
0
        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);
            }
        }