private void Combo_Box_Click(object sender, EventArgs e) { myEventArgs temp = new myEventArgs(cb.Text); if (myEvent != null) { myEvent(this, temp); } }
private void Updating_Combo_Box(object sender, myEventArgs e) { UserControl1 tmp = (UserControl1)sender; pens = int.Parse(e.myString); for (int i = 0; i < uc.Length; i++) { if (tmp == uc[i]) { addpensIDX = i; } uc[i].CBdisable(); } }