private void updateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmMainMenu myForm = (frmMainMenu)Application.OpenForms["frmMainMenu"];
     Category selectCategory = GetSelectedCategory();
     frmCategory frmCategory = new frmCategory(selectCategory){MdiParent = myForm};
     frmCategory.Show();
     Close();
     //GetData();
     //resultListView.HideSelection = false;
 }
 private void frmCategoryRecord_FormClosing(object sender, FormClosingEventArgs e)
 {
     frmCategory frm = new frmCategory();
     frm.Show();
 }
        private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panel1.Visible = false;
            panel2.Visible = false;

            frmCategory frm = new frmCategory(){MdiParent = this};
            frm.Show();
        }