/// <summary> /// Change View state to Folder and resize form vertically. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuFolderItem_Click(object sender, EventArgs e) { mode = ViewMode.Folder; bPanel.SuspendLayout(); this.Size = vertical; pushBackMenuStates(); bPanel.Controls.Clear(); fv = new folderView(this); bPanel.Controls.Add(fv); if (Longmode) { menuItem2.MenuItems.RemoveAt(1); menuItem2.MenuItems.Remove(discEditItem); } Longmode = false; fv.Focus(); bPanel.ResumeLayout(); }
/// <summary> /// Change View state to Folder and resize form vertically. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuFolderItem_Click(object sender, EventArgs e) { mode = ViewMode.Folder; bPanel.SuspendLayout(); this.Size = vertical; pushBackMenuStates(); bPanel.Controls.Clear(); fv = new folderView(this); bPanel.Controls.Add(fv); if (Longmode) { menuItem2.MenuItems.RemoveAt(1); menuItem2.MenuItems.Remove(discEditItem); } Longmode = false; fv.Focus(); bPanel.ResumeLayout(); }