private void bunifuImageButton6_Click(object sender, EventArgs e) { if (colour == null) { colour = new COlourList(); colour.RefreshDgv += new COlourList.DoEvent(ResetColor); colour.Show(this); } else { colour.WindowState = FormWindowState.Normal; colour.Focus(); } }
void ResetColor() { colour = null; }