Beispiel #1
0
        private void button6_Click_1(object sender, EventArgs e)
        {
            manage_books mb = new manage_books();

            this.Close();
            mb.Show();
        }
Beispiel #2
0
        private void manageBooksInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool Isopen = false;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "manage_books")
                {
                    Isopen = true;
                    f.BringToFront();
                    break;
                }
            }

            if (Isopen == false)
            {
                manage_books mb = new manage_books();
                mb.Show();
            }
        }