private void Connect(ConnectModel model)
        {
            if(string.IsNullOrWhiteSpace(model.Game)
                || string.IsNullOrWhiteSpace(model.Account)
                || string.IsNullOrWhiteSpace(model.Password)
                || string.IsNullOrWhiteSpace(model.Character))
            {
                LogSystem("Please enter all information\n");
                return;
            }

            LogSystem("Authenticating...\n");

            var token = _gameServer.Authenticate(model.Game, model.Account, model.Password, model.Character);
            if(token != null)
            {
                LogSystem("Authenticated...\n");
                _gameServer.Connect(token);
            }
            else
            {
                LogSystem("Unable to authenticate.\n");
            }
        }
 public void ShowSheet(NSWindow newParent, ConnectModel model, IServiceLocator services, Action<ConnectModel> complete, Action cancel)
 {
     _services = services;
     _complete = complete;
     _cancel = cancel;
     Window.BeginSheet(newParent);
     BindingSource.AddObject(model);
 }