예제 #1
0
파일: UISetting.cs 프로젝트: ShingleJ/PinHu
 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;
     }
 }
예제 #2
0
파일: UIAdmin.cs 프로젝트: ShingleJ/PinHu
 //点击个人信息按钮,获得用户类型,打开编辑资料窗口 
 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();
     }
     
 }