예제 #1
0
파일: MainForm.cs 프로젝트: monstrim/Ares
        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]);
        }