/// <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;
 }
Exemple #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;
     }
 }
Exemple #3
0
 private void btnUser_Click(object sender, EventArgs e)
 {
     UserManagement user = new UserManagement(this);
     this.Hide();
     user.Show();
 }