private void addNewAlbumToolStripMenuItem_Click(object sender, EventArgs e) { HelperMethods.CloseAllForms(); frmAddAlbum frm = new frmAddAlbum(); frm.MdiParent = Application.OpenForms["frmIndex"]; frm.WindowState = FormWindowState.Maximized; frm.Show(); }
private void btnAddAlbum_Click(object sender, EventArgs e) { this.Close(); frmAddAlbum frm = new frmAddAlbum(); frm.WindowState = FormWindowState.Maximized; frm.MdiParent = Application.OpenForms["frmIndex"]; //postavi mdi na na mdi parenta ove forme frm.Show(); }