private void InitHomeFrame() { HomeFm = new HomeForm(); HomeFm.TopLevel = false; HomeFm.MdiParent = this; HomeFm.Dock = DockStyle.Fill; HomeFm.Show(); }
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(); }
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(); }
private void SessionAddAndSearchForm_FormClosed(object sender, FormClosedEventArgs e) { var objHomeForm = new HomeForm(); objHomeForm.Show(); }