Exemple #1
0
 private void destroySession()
 {
     if(_session != null)
     {
         _session.destroy();
         _session = null;
     }
 }
Exemple #2
0
        public void doLogin()
        {
            LoginDialog loginDialog = new LoginDialog(_loginData);
            Util.centerWindow(loginDialog, this);
            if(loginDialog.ShowModal())
            {
                status.Content = "Connecting";
                _factory.setRouterHost(_loginData.routerHost);
                _factory.setRouterIdentity(new Ice.Identity("router", "DemoGlacier2"));
                _session = _factory.connect(_loginData.userName, _loginData.password);

                _cancelDialog = new CancelDialog();
                Util.centerWindow(_cancelDialog, this);
                if(_cancelDialog.ShowModal())
                {
                    destroySession();
                }
            }
        }
Exemple #3
0
 public void disconnected(SessionHelper session)
 {
     // If the session has been reassigned avoid the
     // spurious callback.
     if(session != _session)
     {
         return;
     }
     closeCancelDialog();
     _session = null;
     _chat = null;
     input.IsEnabled = false;
     status.Content = "Not connected";
 }
Exemple #4
0
 public void createdCommunicator(Glacier2.SessionHelper session)
 {
 }
Exemple #5
0
 public void CreatedCommunicator(Glacier2.SessionHelper session) => Assert(session.Communicator != null);
Exemple #6
0
 public void Disconnected(Glacier2.SessionHelper session) => Assert(false);