Exemplo n.º 1
0
        private void btnSendEmail_Click(object sender, EventArgs e)
        {
            // 获取选择列的邮件
            string       id           = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdStaffAddress, BaseStaffEntity.FieldId);
            FrmSendEmail frmSendEmail = new FrmSendEmail(id);

            if (frmSendEmail.ShowDialog(this) == DialogResult.OK)
            {
                // 记录当前选中的主键
                this.CurrentEntityId = this.EntityId;
                // 加载窗体
                this.FormOnLoad();
            }
        }
Exemplo n.º 2
0
 private void btnSendEmail_Click(object sender, EventArgs e)
 {
     // 获取选择列的邮件
     string id = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdStaffAddress, BaseStaffEntity.FieldId);
     FrmSendEmail frmSendEmail = new FrmSendEmail(id);
     if (frmSendEmail.ShowDialog(this) == DialogResult.OK)
     {
         // 记录当前选中的主键
         this.CurrentEntityId = this.EntityId;
         // 加载窗体
         this.FormOnLoad();
     }
 }