Exemplo n.º 1
0
 private void StoreDetails_ToolStrip_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Store_Master) || clsUtility.IsAdmin)
     {
         bool b = ObjUtil.IsAlreadyOpen(typeof(Masters.Store_Master));
         if (!b)
         {
             Masters.Store_Master Obj = new Masters.Store_Master();
             Obj.Show();
         }
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }
Exemplo n.º 2
0
 private void btnStorePopup_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Store_Master) || clsUtility.IsAdmin)
     {
         int a = 0;
         if (cmbShop.SelectedIndex >= 0)
         {
             a = Convert.ToInt32(cmbShop.SelectedValue);
         }
         Masters.Store_Master Obj = new Store_Master();
         Obj.ShowDialog();
         FillStoreDetails();
         if (a > 0)
         {
             cmbShop.SelectedValue = a;
         }
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }