コード例 #1
0
 private void InitHomeFrame()
 {
     HomeFm = new HomeForm();
     HomeFm.TopLevel = false;
     HomeFm.MdiParent = this;
     HomeFm.Dock = DockStyle.Fill;
     HomeFm.Show();
 }
コード例 #2
0
 private void InitHomeFrame()
 {
     HomeFm           = new HomeForm();
     HomeFm.TopLevel  = false;
     HomeFm.MdiParent = this;
     HomeFm.Dock      = DockStyle.Fill;
     HomeFm.Show();
 }
コード例 #3
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();
        }
コード例 #4
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();
     }
 }
コード例 #5
0
        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");
            }
        }
コード例 #6
0
        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;
            }
        }
コード例 #7
0
        private void DepartmentAddForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var objHomeForm = new HomeForm();

            objHomeForm.Show();
        }
コード例 #8
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();
        }
コード例 #9
0
        private void SessionAddAndSearchForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var objHomeForm = new HomeForm();

            objHomeForm.Show();
        }