WFA_psychometric_chart.Form_Input_For_Seriespoint.btnSetNode_Click C# (CSharp) Method

btnSetNode_Click() private method

private btnSetNode_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnSetNode_Click(object sender, EventArgs e)
        {
            /*
            This set node should do two task
            1. Insert a point by calling a function
            2. It should input the values in menuStripNodeInfoValues
            */
            //string source = tbSource.Text;
            //string name = tbName.Text;
            //string label = tbLabel.Text;
            //string cbItemSelected = comboBox1.Text;
            //string lineName = "";
            //int status = 0;//dissabled
            //if (cb_line_enabled.Checked == true)
            //{
            //    status = 1;
            //}
            //if(tb_line_name.Text == "")
            //{
            //    int t = F1.menuStripNodeInfoValues.Count;
            //    if (t > 0)
            //    {
            //        indexRun = t;
            //    }

            //    int indLineCount = indexRun;
            //    //This one is for line Name
            //    for (int i = 0; i < F1.menuStripNodeLineInfoValues.Count; i++)
            //    {
            //        if (F1.menuStripNodeLineInfoValues[i].name == lineName)
            //        {
            //            indLineCount++;
            //            lineName = "Line" + indLineCount;
            //            i = 0;
            //        }

            //    }

            //}
            //else
            //{
            //    lineName = tb_line_name.Text;
            //}

            ////MessageBox.Show("items index " + cbItemSelected);
            //if (F1.menuStripNodeInfoValues.Count > 0) {

            //F1.SetNode(source, name, label, btnColor.BackColor, cbItemSelected,20,lineName,status);

            //}
            //else
            //{
            //    //--For first input
            //    F1.SetNode(source, name, label, btnColor.BackColor, cbItemSelected, 20, lineName, status);
            //}
            ////MessageBox.Show(Properties.Resources.Success0);
            //this.Close();
        }