Esempio n. 1
0
 public ChairmanForm(Login_Form l, string n)
 {
     cobj = new Controller();
     nme  = n;
     InitializeComponent();
     lf = l;
 }
Esempio n. 2
0
 public ManagerForm(Login_Form l, string n, int i)
 {
     cobj = new Controller();
     nme  = n;
     id   = Convert.ToString(i);
     lf   = l;
     InitializeComponent();
     Dt               = cobj.Get_Employee_by_ID(Convert.ToInt32(id));
     Password         = Dt.Rows[0].ItemArray[5].ToString();
     AddStory.Visible = AddBookBtn.Visible = AddMusic.Visible = AddCmp.Visible = false;
     if (Password == "SPR123")
     {
         AddBookBtn.Visible = true;
     }
     else if (Password == "SPR456")
     {
         AddStory.Visible = true;
     }
     else if (Password == "SPR789")
     {
         AddMusic.Visible = true;
     }
     else if (Password == "SPR101112")
     {
         AddCmp.Visible = true;
     }
 }
Esempio n. 3
0
 public EmployeeForm(Login_Form l, string n, int i)
 {
     cobj = new Controller();
     nme  = n;
     id   = Convert.ToString(i);
     lf   = l;
     InitializeComponent();
 }