Beispiel #1
0
        private void btnRegister_Click(object sender, EventArgs e)
        {
            var frmedit = new UserRegister();

            frmedit.ShowDialog();
            // this.bdgUser.Clear();
            //this.bdgUser.DataSource = userRepo.GetAll();
        }
 private void BtnRegisterClick(object sender, EventArgs e)
 {
     var frmedit = new UserRegister();
     frmedit.ShowDialog();
     if (frmedit.DialogResult != DialogResult.Yes) return;
     Searh();
     // this.bdgUser.Clear();
     //this.bdgUser.DataSource = userRepo.GetAll();
 }
 private void GrdPatientCellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     User user = (User)this.bdgUser.Current;
     if (user == null) return;
     var frmedit = new UserRegister(user);
     frmedit.ShowDialog();
     if (frmedit.DialogResult != DialogResult.Yes) return;
     Searh();
     // this.Close();
 }
        private void BtnRegisterClick(object sender, EventArgs e)
        {
            var frmedit = new UserRegister();

            frmedit.ShowDialog();
            if (frmedit.DialogResult != DialogResult.Yes)
            {
                return;
            }
            Searh();
            // this.bdgUser.Clear();
            //this.bdgUser.DataSource = userRepo.GetAll();
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     this.bdgUser.EndEdit();
     var _user = (User)this.bdgUser.Current;
     if (_user == null)
     {
         MessageDialog.Instance.ShowMessage(this, "M001", "Bệnh nhân");
         return;
     }
     var frmedit = new UserRegister(_user);
     frmedit.ShowDialog();
     this.bdgUser.Clear();
     this.bdgUser.DataSource = userRepo.GetAll();
 }
Beispiel #6
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            this.bdgUser.EndEdit();
            var _user = (User)this.bdgUser.Current;

            if (_user == null)
            {
                MessageDialog.Instance.ShowMessage(this, "M001", "Bệnh nhân");
                return;
            }
            var frmedit = new UserRegister(_user);

            frmedit.ShowDialog();
            this.bdgUser.Clear();
            this.bdgUser.DataSource = userRepo.GetAll();
        }
        private void GrdPatientCellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            User user = (User)this.bdgUser.Current;

            if (user == null)
            {
                return;
            }
            var frmedit = new UserRegister(user);

            frmedit.ShowDialog();
            if (frmedit.DialogResult != DialogResult.Yes)
            {
                return;
            }
            Searh();
            // this.Close();
        }
 private void btnRegister_Click(object sender, EventArgs e)
 {
     var frmedit = new UserRegister();
     frmedit.ShowDialog();
    // this.bdgUser.Clear();
     //this.bdgUser.DataSource = userRepo.GetAll();
 }