private void StudentInsertForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var objHomeForm = new HomeForm();

            this.Hide();
            objHomeForm.Show();
        }
        private void BookSearchForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.Hide();
            var objHomeForm = new HomeForm();

            objHomeForm.Show();
        }
Example #3
0
 private void InitHomeFrame()
 {
     HomeFm           = new HomeForm();
     HomeFm.TopLevel  = false;
     HomeFm.MdiParent = this;
     HomeFm.Dock      = DockStyle.Fill;
     HomeFm.Show();
 }
Example #4
0
 private void InitHomeFrame()
 {
     HomeFm = new HomeForm();
     HomeFm.TopLevel = false;
     HomeFm.MdiParent = this;
     HomeFm.Dock = DockStyle.Fill;
     HomeFm.Show();
 }
Example #5
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!HomeFm.IsDisposed)
            {
                return;
            }

            KillUselessFms();

            HomeFm           = new HomeForm();
            HomeFm.TopLevel  = false;
            HomeFm.MdiParent = this;
            HomeFm.Dock      = DockStyle.Fill;
            HomeFm.Show();
        }
Example #6
0
 private void BookIssueDetailsForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (lFormDefineLabel.Text == @"home")
     {
         var objHomeForm = new HomeForm();
         this.Hide();
         objHomeForm.Show();
     }
     else
     {
         var objBookSearchForm = new BookSearchForm();
         this.Hide();
         objBookSearchForm.Show();
     }
 }
        private void loginButton_Click(object sender, EventArgs e)
        {
            if (userNameTextBox.Text == "")
            {
                label3.Show();
            }

            if (passwordTextBox.Text == "")
            {
                label4.Show();
            }
            if (userNameTextBox.Text != "")
            {
                label3.Hide();
            }

            if (passwordTextBox.Text != "")
            {
                label4.Hide();
            }


            if (userNameTextBox.Text == "" || passwordTextBox.Text == "")
            {
                return;
            }

            if (CheckIsLogin())
            {
                UpdateLoginTime();

                this.Hide();
                var home = new HomeForm();
                home.Show();
            }
            else
            {
                label5.Show();
                errorProvider1.SetError(pictureBox1, "Invalid");
            }
        }
        private void BookAddForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            switch (FormDefineLabel.Text)
            {
            case "home":
            {
                var objHomeForm = new HomeForm();
                this.Hide();
                objHomeForm.Show();
                //  this.Close();
            }
            break;

            default:
            {
                var objBookSearchForm = new BookSearchForm();
                this.Hide();
                objBookSearchForm.Show();
                //  this.Close();
            }
            break;
            }
        }
        private void DepartmentAddForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var objHomeForm = new HomeForm();

            objHomeForm.Show();
        }
Example #10
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!HomeFm.IsDisposed)
            {
                return;
            }

            KillUselessFms();

            HomeFm = new HomeForm();
            HomeFm.TopLevel = false;
            HomeFm.MdiParent = this;
            HomeFm.Dock = DockStyle.Fill;
            HomeFm.Show();
        }
Example #11
0
        private void SessionAddAndSearchForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var objHomeForm = new HomeForm();

            objHomeForm.Show();
        }