Example #1
0
        /// <summary>
        /// Create the instance of this form if no other instances created and return it
        /// </summary>
        /// <summary xml:lang="ru">
        /// Создать инстанс формы если он ещё не создан и вернуть его
        /// </summary>
        /// <returns>
        /// Current form instance
        /// </returns>
        /// <returns xml:lang="ru">
        /// Текущий инстанс формы
        /// </returns>
        public static FileBrowserWindow GetInstance()
        {
            if (instance == null)
            {
                instance = new FileBrowserWindow();
            }

            return(instance);
        }
Example #2
0
        /// <summary>
        /// Show file browser window, which is the main form.
        /// </summary>
        /// <summary xml:lang="ru">
        /// Показать файловый менеджер, главную форму приложения.
        /// </summary>
        public void ShowFileBrowserWindow()
        {
            GameDirectory dir = new GameDirectory(Properties.Settings.Default.GTAPath);

            fileBrowserWindow = FileBrowserWindow.GetInstance();
            fileBrowserWindow.OpenRootDir(dir);
            fileBrowserWindow.FormClosed += OnClosed;
            fileBrowserWindow.Show();
        }