private void ClearB_Click(object sender, EventArgs e) { PanelD.Refresh(); // Перерисовывем панель paint_box for (int i = 0; i < av; ++i) { if (!storag.check_emp(i)) { // Меняем is_drawed на false storag.objects[i].drawed = false; } } }
private void DeleteCB_Click(object sender, EventArgs e) { remove_selected_circle(ref storag); PanelD.Refresh(); if (storag.oc(av) != 0) { for (int i = 0; i < av; ++i) { paint_circle(Color.Maroon, ref storag, i); } } }
private void ShowB_Click(object sender, EventArgs e) { PanelD.Refresh(); if (storag.oc(av) != 0) { for (int i = 0; i < av; ++i) { if (!storag.check_emp(i)) { // Меняем is_drawed на true storag.objects[i].drawed = true; } paint_circle(Color.Maroon, ref storag, i); } } }