Пример #1
0
        // static int login = 1;
        private void btnLogin_Click(object sender, EventArgs e)
        {
            txtName.Text     = "Admin";
            txtPassword.Text = "admin";
            if (txtName.Text == "")
            {
                txtName.Focus();
            }
            else if (txtPassword.Text == "")
            {
                txtPassword.Focus();
            }
            else
            {
                txtName.Focus();
            }
            Login(txtName.Text, txtPassword.Text);
            frmMainForm.UserId   = userdalobj.ReturnId(txtName.Text, txtPassword.Text);
            frmMainForm.UserName = userdalobj.ReturnName(txtName.Text, txtPassword.Text);

            frmShowLocation fshowloc = new frmShowLocation();

            fshowloc.MdiParent = this;
            fshowloc.Show();
        }
Пример #2
0
        private void locationWiseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmShowLocation fshowloc = new frmShowLocation();

            fshowloc.MdiParent = this;
            // this.Top = 0;
            // this.Left = 0;
            fshowloc.Show();
        }