Example #1
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();
                }
            }
        }
Example #2
0
 private void closeCancelDialog()
 {
     if(_cancelDialog != null)
     {
         _cancelDialog.Close();
         _cancelDialog = null;
     }
 }
Example #3
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();
                }
            }
        }