private void KeyAllocationEntry_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (nUserType == "COO")
     {
         this.Hide();
         MainUI frm = new MainUI();
         frm.Show();
     }
     if (nUserType == "TTM")
     {
         this.Hide();
         MainUIForTTM frm = new MainUIForTTM();
         frm.Show();
     }
     if (nUserType == "LIC")
     {
         this.Hide();
         MainUIForLIC frm = new MainUIForLIC();
         frm.Show();
     }
 }
        private void LocationManagementUI_FormClosed(object sender, FormClosedEventArgs e)
        {

            if (userTypel == "COO")
            {
                this.Hide();
                MainUI frm = new MainUI();
                frm.Show();
            }
            if (userTypel == "TTM")
            {
                this.Hide();
                MainUIForTTM frm = new MainUIForTTM();
                frm.Show();
            }
            if (userTypel == "LIC")
            {
                this.Hide();
                MainUIForLIC frm = new MainUIForLIC();
                frm.Show();
            }
        }