示例#1
0
 private void BtnStorage_Click(object sender, EventArgs e)
 {
     Hide();
     if (user.GetPermit(DataType.Storage))
     {
         CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Storage);
         manage.ShowDialog();
     }
     else
     {
         CommonMenus.ModifyDeleteFormulary modifyDeleteFormulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Storage);
         modifyDeleteFormulary.ShowDialog();
     }
     Show();
 }
示例#2
0
 private void BtnItem_Click(object sender, EventArgs e)
 {
     if (user.GetPermit(DataType.Item))
     {
         Hide();
         CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Item);
         manage.ShowDialog();
         Show();
     }
     else
     {
         Hide();
         CommonMenus.ModifyDeleteFormulary formulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Item);
         formulary.ShowDialog();
         Show();
     }
 }