Esempio n. 1
0
        private void buttonRemove_Click(object sender, EventArgs e)
        {
            ModificationObserver.AddDeleteAction(listBoxShapes.SelectedItem as Shape, ref listBoxShapes, ref groupBoxShape);

            Shapes.RemoveAt(listBoxShapes.SelectedIndex);

            if (listBoxShapes.Items.Count <= 0)
            {
                buttonRemove.Enabled  = false;
                groupBoxShape.Visible = false;
            }

            SendDataToClient();
        }