예제 #1
0
        private void rbtnRectangle_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRectangle.Checked)
            {
                AddRectangle frmRectangle = new AddRectangle();
                frmRectangle.ShowDialog();
                rbtnRectangle.Checked = false;

                rectangles = frmRectangle.countRectangles;
                lblCountRectangles.Text = rectangles.ToString();
            }
        }
예제 #2
0
        private void rbtnRectangle_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRectangle.Checked)
            {
                AddRectangle frmRectangle = new AddRectangle(geometryList);
                frmRectangle.ShowDialog();
                rbtnRectangle.Checked   = false;
                lblCountRectangles.Text = (frmRectangle.getNumOfRectangles()).ToString();

                geometryList = frmRectangle.getUpdatedList(); // To update the geometryList
                displayOnListBox(geometryList);               // To display the content of list on listBox in detail tab
            }
        }
예제 #3
0
파일: Main.cs 프로젝트: Klochel/Klochel
        private void rbtnRectangle_CheckedChanged(object sender, EventArgs e)
        {
            if (rbtnRectangle.Checked)
            {
                AddRectangle frmRectangle = new AddRectangle();
                frmRectangle.ShowDialog();
                rbtnRectangle.Checked = false;

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

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