示例#1
0
 private void button14_Click(object sender, EventArgs e)
 {
     this.panel2.Enabled = false;
     if (this.radioButton1.Checked)
     {
         this.u = new Thinksea.Windows.UserSystem();
     }
     else
     {
         this.u = new Thinksea.Windows.UserSystem(this.editComputer.Text, this.editUser.Text, this.editPassword.Text);
     }
     try
     {
         this.u.IsUserExists(this.editUser.Text);
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.ToString());
         return;
     }
     MessageBox.Show("连接成功!");
     this.panel2.Enabled = true;
     this.RefreshUserList();
     this.RefreshGroupList();
 }
 public ChangePassword(Thinksea.Windows.UserSystem u, string UserName)
 {
     InitializeComponent();
     this.u        = u;
     this.UserName = UserName;
     this.Text     = "为 " + UserName + " 修改密码";
 }
示例#3
0
        public SelectGroups(Thinksea.Windows.UserSystem u)
        {
            InitializeComponent();

            this.u = u;
            this.lbGroups.Items.AddRange(this.u.GetGroups());
        }
示例#4
0
        public ModifyGroup(Thinksea.Windows.UserSystem u, string GroupName)
        {
            InitializeComponent();

            this.u         = u;
            this.GroupName = GroupName;
            GroupInfo g = this.u.GetGroup(GroupName);

            this.Text                 = g.GroupName + " 属性";
            this.lGroupName.Text      = g.GroupName;
            this.editDescription.Text = g.Description;
            this.lbUsers.Items.AddRange(this.u.GetUsersByGroup(GroupName));
        }
示例#5
0
        public ModifyUser(Thinksea.Windows.UserSystem u, string UserName)
        {
            InitializeComponent();

            this.u        = u;
            this.UserName = UserName;

            UserInfo ui = u.GetUser(UserName);

            this.Text                         = ui.UserName + " 属性";
            this.lUserName.Text               = ui.UserName;
            this.editFullName.Text            = ui.FullName;
            this.editDescription.Text         = ui.Description;
            this.cbPasswordExpired.Checked    = ui.PasswordExpired;
            this.cbChangePassword.Checked     = ui.ChangePassword;
            this.cbDontExpirePassword.Checked = ui.DontExpirePassword;
            this.cbEnableUser.Checked         = ui.EnableUser;

            this.lbGroups.Items.AddRange(u.GetGroupsByUser(UserName));
        }
示例#6
0
 public CreateGroup(Thinksea.Windows.UserSystem u)
 {
     InitializeComponent();
     this.u = u;
 }