private void btnNewUser_Click(object sender, RoutedEventArgs e) { frmUser f = new frmUser(); f.LoadWindow(); f.ShowDialog(); LoadWindow(); }
private void btnNewUser_Click(object sender, RoutedEventArgs e) { frmUser f = new frmUser(); f.UnderCompanyId = CompanyId; f.LoadWindow(CompanyId); f.ShowDialog(); LoadWindow(CompanyId); //f.data.UserType.CompanyId = userId; }
private void btnEditUser_Click(object sender, RoutedEventArgs e) { var u = dgvUsers.SelectedItem as BLL.UserAccount; frmUser f = new frmUser(); f.UnderCompanyId = CompanyId; f.LoadWindow(CompanyId); u.toCopy <BLL.UserAccount>(f.data); f.ShowDialog(); LoadWindow(CompanyId); }
private void btnEditUser_Click(object sender, RoutedEventArgs e) { if (!(BLL.UserAccount.AllowUpdate(Forms.frmUser))) { MessageBox.Show(string.Format(Message.PL.DenyUpdate, "User"), "User", MessageBoxButton.OK); } else { var u = dgvUsers.SelectedItem as BLL.UserAccount; frmUser f = new frmUser(); f.LoadWindow(); u.toCopy <BLL.UserAccount>(f.data); f.ShowDialog(); LoadWindow(); } }