public void Init(LogHandler logHandler, LocalServerRunner localServerRunner)
        {
            _log = logHandler;
            _localServerRunner        = localServerRunner;
            ExecutablePath            = DEFAULTEXEPATH;
            GameRoot                  = DEFAULTGAMEROOT;
            gameRootPathTxtBox.Text   = GameRoot;
            executablePathTxtBox.Text = ExecutablePath;

            _localServerRunner.ServerProcessOnErrorData += HandleErrorData;
            _localServerRunner.ServerProcessOnOutData   += HandleOutData;
        }
        private void TryLocalServerFile()
        {
            var gameRoot = DEFAULTGAMEROOT;
            var exePath  = DEFAULTEXEPATH;

            if (LocalServerRunner.TryLoadLocalServerInfoFile(out gameRoot, out exePath))
            {
                GameRoot = gameRoot;
                gameRootPathTxtBox.Text   = gameRoot;
                ExecutablePath            = exePath;
                executablePathTxtBox.Text = exePath;
                _log.Log($"saved local server info was loaded.\ngameroot: [{gameRoot}]\nexepath: [{exePath}]");
                _log.StatusMessage("Local server info loaded from file.");
            }
            else
            {
                _log.Log("no saved local server info was found.");
            }
        }