예제 #1
0
        /// <summary>
        /// Set game path menu item event handler
        /// </summary>
        /// <summary xml:lang="ru">
        /// Обработчик события нажатия пункта меню "Выбрать путь к игре"
        /// </summary>
        /// <param name="sender">Component that emitted the event</param>
        /// <param name="e">Event arguments</param>
        /// <param name="sender" xml:lang="ru">Указатель на компонент, который отправил событие</param>
        /// <param name="e" xml:lang="ru">Аргументы события</param>
        private void SetGamePathMenuItemClick(object sender, EventArgs e)
        {
            SetGamePathWindow window = new SetGamePathWindow();

            window.OnGtaPathSet += OnGtaPathChanged;
            window.ShowDialog();
        }
예제 #2
0
 /// <summary>
 /// Show game path window settings to setup game path
 /// </summary>
 /// <summary xml:lang="ru">
 /// Показать форму настройки пути к игре
 /// </summary>
 public void ShowGamePathWindow()
 {
     setGamePathWindow               = new SetGamePathWindow();
     setGamePathWindow.FormClosed   += OnClosed;
     setGamePathWindow.OnCancelled  += OnClosed;
     setGamePathWindow.OnGtaPathSet += OnGtaPathSet;
     setGamePathWindow.Show();
 }