private void btnlogin_Click(object sender, EventArgs e)
        {
            Dt = log.LOGIN(txtID.Text, txtPWD.Text);
            if (Dt.Rows.Count > 0)
            {
                if (Dt.Rows[0][2].ToString() == "MAMULE")
                {
                    FRM_MAIN frm = new FRM_MAIN();
                    FRM_MAIN.getMainForm.shaqaalahaToolStripMenuItem.Enabled = true;
                    FRM_MAIN.getMainForm.macamiishaToolStripMenuItem.Enabled = true;
                    FRM_MAIN.getMainForm.agabyadaToolStripMenuItem.Enabled   = true;;
                    FRM_MAIN.getMainForm.backupssaame.Enabled  = true;
                    FRM_MAIN.getMainForm.backupsooceli.Enabled = true;
                    FRM_MAIN.getMainForm.kabax.Enabled         = true;
                    FRM_MAIN.getMainForm.shaqaalahaToolStripMenuItem.Visible = true;
                    FRM_MAIN.getMainForm.toolStrip1.Enabled = true;
                    FRM_MAIN.getMainForm.dIYAARINTASERVERKAToolStripMenuItem.Enabled = true;
                    FRM_MAIN.getMainForm.bAKHAARKAToolStripMenuItem.Enabled          = true;

                    Program.SalesMan = Dt.Rows[0]["FullName"].ToString();

                    this.Close();
                }
                else if (Dt.Rows[0][2].ToString() == "SHAQAALE")
                {
                    FRM_MAIN frm = new FRM_MAIN();
                    FRM_MAIN.getMainForm.shaqaalahaToolStripMenuItem.Visible = false;
                    FRM_MAIN.getMainForm.macamiishaToolStripMenuItem.Enabled = true;
                    FRM_MAIN.getMainForm.agabyadaToolStripMenuItem.Enabled   = true;;
                    FRM_MAIN.getMainForm.backupssaame.Enabled  = true;
                    FRM_MAIN.getMainForm.backupsooceli.Enabled = true;
                    FRM_MAIN.getMainForm.kabax.Enabled         = true;
                    FRM_MAIN.getMainForm.toolStrip1.Enabled    = true;
                    FRM_MAIN.getMainForm.dIYAARINTASERVERKAToolStripMenuItem.Enabled = true;
                    FRM_MAIN.getMainForm.toolStripButton1.Visible           = false;
                    FRM_MAIN.getMainForm.bAKHAARKAToolStripMenuItem.Enabled = true;

                    Program.SalesMan = Dt.Rows[0]["FullName"].ToString();

                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("WAA LAGU GUULDAREESTAY GALIDA");
            }
        }
 public FRM_MAIN()
 {
     InitializeComponent();
     if (frm == null)
     {
         frm = this;
     }
     this.shaqaalahaToolStripMenuItem.Enabled = false;
     this.macamiishaToolStripMenuItem.Enabled = false;
     this.agabyadaToolStripMenuItem.Enabled   = false;
     this.backupssaame.Enabled  = false;
     this.backupsooceli.Enabled = false;
     this.kabax.Enabled         = false;
     this.bAKHAARKAToolStripMenuItem.Enabled = false;
     this.toolStrip1.Enabled = false;
     this.dIYAARINTASERVERKAToolStripMenuItem.Enabled = true;
 }
 static void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     frm = null;
 }