Beispiel #1
0
 private void information_Click(object sender, EventArgs e)
 {
     switch (Parameters.usertype)
     {
         case 0:
             {
                 UIMoreStudentInfo isi = new UIMoreStudentInfo();
                 isi.Show();
             }
             break;
         case 1:
             {
                 UIMoreMerchantInfo imi = new UIMoreMerchantInfo();
                 imi.Show();
             }
             break;
         case 2:
             {
                 UIMoreAdminInfo iai = new UIMoreAdminInfo();
                 iai.Show();
             }
             break;
     }
 }
Beispiel #2
0
 //点击个人信息按钮,获得用户类型,打开编辑资料窗口 
 private void btnEdit_Click(object sender, EventArgs e)
 {
     int flag = Parameters.usertype;
     if (flag == 0)
     {
         UIMoreStudentInfo ipi = new UIMoreStudentInfo();
         ipi.Show();
     }
     else if (flag == 1)
     {
         UIMoreMerchantInfo imi = new UIMoreMerchantInfo();
         imi.Show();
     }
     else if (flag == 2)
     {
         UIMoreAdminInfo iai = new UIMoreAdminInfo();
         iai.Show();
     }
     
 }