private void OnReceiverChangedEvent(object sender, ReceiverChangedEventArgs e) { if (ReceiverChangedEvent != null) { ReceiverChangedEvent(sender, e); } }
private void frm_ReceiverChangedEvent(object sender, ReceiverChangedEventArgs e) { EMailNotifyConfig temp = _uc_EMailNotify_VM.NotifyConfig; if (e.DisplayType == DisplayType.Add) { temp.ReceiveInfoList.Add(new ReceiverInfo(e.Name, e.EmailAddr)); } else { ReceiverInfo info = temp.ReceiveInfoList[_curSelectReceiverIndex]; info.Name = e.Name; info.EmailAddr = e.EmailAddr; } eMailNotifyConfigBS.ResetBindings(false); }