Beispiel #1
0
 private void rbtnRightTriange_CheckedChanged(object sender, EventArgs e)
 {
     if (rbtnRightTriangle.Checked)
     {
         AddRightTriangle frmTriangle = new AddRightTriangle();
         frmTriangle.ShowDialog();
         rbtnRightTriangle.Checked = false;
     }
 }
Beispiel #2
0
        private void rbtnRightTriange_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRightTriangle.Checked)
            {
                AddRightTriangle frmTriangle = new AddRightTriangle();
                frmTriangle.ShowDialog();
                rbtnRightTriangle.Checked = false;

                triangles = frmTriangle.countTriangles;
                lblCountRightTriangles.Text = triangles.ToString();
            }
        }
Beispiel #3
0
        private void rbtnRightTriange_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRightTriangle.Checked)
            {
                AddRightTriangle frmTriangle = new AddRightTriangle(geometryList);
                frmTriangle.ShowDialog();
                rbtnRightTriangle.Checked   = false;
                lblCountRightTriangles.Text = (frmTriangle.getNumOfRightTriangles()).ToString(); // shows the number of right triangles

                geometryList = frmTriangle.getUpdatedList();                                     // To update the geometryList
                displayOnListBox(geometryList);                                                  // To display the content of list on listBox in detail tab
            }
        }
Beispiel #4
0
        private void rbtnRightTriange_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRightTriangle.Checked)
            {
                AddRightTriangle frmTriangle = new AddRightTriangle();
                frmTriangle.ShowDialog();
                rbtnRightTriangle.Checked = false;

                // Dispaly items in details tab
                lbxDetailListBox.Items.Add(frmTriangle.getItem());
                tbxRightTriangle.Text = frmTriangle.getCount();

                // Display items in sort tab
                lbxDetailListBox.Items.Add(frmTriangle.getItem());
            }
        }