Пример #1
0
        private int oInfo1_eventdelSender(object Sender, string strText)
        {
            UCInfo oInfo = Sender as UCInfo;

            lboxList.Items.Add(string.Format("{0} {1}", oInfo.UserNo, strText));

            return(0);
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            foreach (var oControl in pMain.Controls)
            {
                if (oControl is UCInfo)
                {
                    UCInfo oInfo = oControl as UCInfo;

                    oInfo.eventdelSender += oInfo1_eventdelSender;
                }
            }
        }