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(); } }
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 } }
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()); } }