private void btnCountryPopup_Click(object sender, EventArgs e)
        {
            int a = 0;

            if (cmbCountry.SelectedIndex >= 0)
            {
                a = Convert.ToInt32(cmbCountry.SelectedValue);
            }
            Masters.Country_Master Obj = new Country_Master();
            Obj.ShowDialog();
            FillCountryData();
            if (a > 0)
            {
                cmbCountry.SelectedValue = a;
            }
        }
Esempio n. 2
0
 private void countryMasterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Country_Master) || clsUtility.IsAdmin)
     {
         bool b = ObjUtil.IsAlreadyOpen(typeof(Masters.Country_Master));
         if (!b)
         {
             Masters.Country_Master Obj = new Masters.Country_Master();
             Obj.Show();
         }
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }