Beispiel #1
0
        private void LoginFrm_Load(object sender, EventArgs e)
        {
            //居中显示
            this.Left = (Screen.PrimaryScreen.WorkingArea.Width - Width) / 2;
            this.Top  = (Screen.PrimaryScreen.WorkingArea.Height - Height) / 2;

            userManager = DASPClient.Utility.SpringUtils.Context.GetObject("UserManager") as ITBUserManager;
        }
Beispiel #2
0
        void EditUserFrm_Load(object sender, EventArgs e)
        {
            //居中显示
            this.Left = (Screen.PrimaryScreen.WorkingArea.Width - Width) / 2;
            this.Top  = (Screen.PrimaryScreen.WorkingArea.Height - Height) / 2;

            userManager = DASPClient.Utility.SpringUtils.Context.GetObject("UserManager") as ITBUserManager;

            roleManager = DASPClient.Utility.SpringUtils.Context.GetObject("RoleManager") as ITBRoleManager;

            LoadData(this.userEntity);
        }
Beispiel #3
0
        void UserManagerFrm_Load(object sender, EventArgs e)
        {
            UI.CommonModule.DataGridViewActionButtonColumn actionColumn =
                new UI.CommonModule.DataGridViewActionButtonColumn();
            actionColumn.Name             = "ColAction";
            actionColumn.DataPropertyName = "UserId";
            dgvUserDataSource.Columns.Add(actionColumn);


            ucToolBar.OnAddClick += new EventHandler(ucToolBar_OnAddClick);

            userManager = DASPClient.Utility.SpringUtils.Context.GetObject("UserManager") as ITBUserManager;
            LoadData(userManager);
        }
Beispiel #4
0
 void LoadData(ITBUserManager userManager)
 {
     dgvUserDataSource.AutoGenerateColumns = false;
     dgvUserDataSource.DataSource          = userManager.GetAll();
 }