示例#1
0
 /// <summary>
 /// 初始化界面
 /// </summary>
 /// <param name="un"></param>
 /// <param name="Id"></param>
 public adminManageUserBooks(UserManagement un, string Id)
 {
     mangement = un;
     InitializeComponent();
     this.id = lblId.Text = Id;
     DataSet ds = booksInfo.getBorrowedInfo(Id);
     dgvRecord.DataSource = ds.Tables[0].DefaultView;
 }
示例#2
0
 public SignUp(UserManagement um, DataGridViewRow dr)
 {
     this.mangement = um;
     InitializeComponent();
     this.txtID.ReadOnly = true;
     this.lblShade.Hide();
     this.txtID.Text = dr.Cells[0].Value.ToString();
     this.txtPwd.Text = dr.Cells[1].Value.ToString();
     try{
         dr.Cells[3].Value.ToString();
     }
     catch
     {
         flag = 1;
         radManager.Checked = true;
         radReader.Checked = false;
     }
 }
示例#3
0
 private void btnUser_Click(object sender, EventArgs e)
 {
     UserManagement user = new UserManagement(this);
     this.Hide();
     user.Show();
 }