コード例 #1
0
        private void btnNewUser_Click(object sender, RoutedEventArgs e)
        {
            frmUser f = new frmUser();

            f.LoadWindow();
            f.ShowDialog();
            LoadWindow();
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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();
            }
        }