Esempio n. 1
0
 private void crystalButton_addRecv_Click(object sender, EventArgs e)
 {
     using (Frm_ReceiverChanged frm = new Frm_ReceiverChanged())
     {
         frm.UpdateLanguage(HsLangTable);
         frm.ReceiverChangedEvent += new ReceiverChangedEventHandler(frm_ReceiverChangedEvent);
         frm.DisplayMode           = DisplayType.Add;
         frm.ShowDialog();
     }
 }
Esempio n. 2
0
 private void crystalButton_addRecv_Click(object sender, EventArgs e)
 {
     using (Frm_ReceiverChanged frm = new Frm_ReceiverChanged())
     {
         frm.UpdateLanguage(HsLangTable);
         frm.ReceiverChangedEvent += new ReceiverChangedEventHandler(frm_ReceiverChangedEvent);
         frm.DisplayMode = DisplayType.Add;
         frm.ShowDialog();
     }
 }
Esempio n. 3
0
        private void crystalButton_modifyRecv_Click(object sender, EventArgs e)
        {
            if (dataGridView_receiver.SelectedRows.Count == 0)
            {
                ShowCustomMessageBox(CommonUI.GetCustomMessage(HsLangTable, "SelectEditReceiver", "请选择要编辑的收件人!"),
                                     "", MessageBoxButtons.OK, MessageBoxIconType.Error);
                return;
            }
            using (Frm_ReceiverChanged frm = new Frm_ReceiverChanged())
            {
                frm.UpdateLanguage(HsLangTable);
                _curSelectReceiverIndex   = dataGridView_receiver.SelectedRows[0].Index;
                frm.ReceiverChangedEvent += new ReceiverChangedEventHandler(frm_ReceiverChangedEvent);

                EMailNotifyConfig temp = _uc_EMailNotify_VM.NotifyConfig;
                ReceiverInfo      info = temp.ReceiveInfoList[_curSelectReceiverIndex];

                frm.DisplayMode = DisplayType.Modify;
                frm.NameChanged = info.Name;
                frm.EmailAddr   = info.EmailAddr;
                frm.ShowDialog();
            }
        }
Esempio n. 4
0
        private void crystalButton_modifyRecv_Click(object sender, EventArgs e)
        {
            if (dataGridView_receiver.SelectedRows.Count == 0)
            {
                ShowCustomMessageBox(CommonUI.GetCustomMessage(HsLangTable, "SelectEditReceiver", "请选择要编辑的收件人!"),
                                "", MessageBoxButtons.OK, MessageBoxIconType.Error);
                return;
            }
            using (Frm_ReceiverChanged frm = new Frm_ReceiverChanged())
            {
                frm.UpdateLanguage(HsLangTable);
                _curSelectReceiverIndex = dataGridView_receiver.SelectedRows[0].Index;
                frm.ReceiverChangedEvent += new ReceiverChangedEventHandler(frm_ReceiverChangedEvent);

                EMailNotifyConfig temp = _uc_EMailNotify_VM.NotifyConfig;
                ReceiverInfo info = temp.ReceiveInfoList[_curSelectReceiverIndex];

                frm.DisplayMode = DisplayType.Modify;
                frm.NameChanged = info.Name;
                frm.EmailAddr = info.EmailAddr;
                frm.ShowDialog();
            }
        }