private void ShowFileExplorer(FileType fileType) { int index = (int)fileType; if (m_FileExplorers[index] == null) { m_FileExplorers[index] = new FileExplorer(fileType, this); m_FileExplorers[index].SetProject(m_CurrentProject); m_FileExplorers[index].ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockRight; m_FileExplorers[index].Show(dockPanel); } else { UpdateWindowState(m_FileExplorers[index]); } ActivateWindow(m_FileExplorers[index]); }