private FileLister GetActivPanel() { FileLister ActivPanel = new FileLister() ; if (LeftPanel.FocusedPanel) ActivPanel=LeftPanel; if (RightPanel.FocusedPanel) ActivPanel =RightPanel; return ActivPanel; }
private static void SetView(string toolStripMenuItem, FileLister ActivPanel) { switch (toolStripMenuItem) { case "smallIcon": ActivPanel.ViewFileListe = View.SmallIcon; break; case "bigIcon": ActivPanel.ViewFileListe = View.LargeIcon; break; case "Details": ActivPanel.ViewFileListe = View.Details; break; } }