예제 #1
0
 private void controller_SessionResetComplete(object sender, Framework.Dispatcher.SessionIdEventArgs e)
 {
     //Enable the button if this form made the reset call.
     if (!string.IsNullOrEmpty(e.SessionId))
     {
         RefreshGrid();
         SetControls(false, e.SessionId);
         TraceFactory.Logger.Info("Session {0} was released.".FormatWith(e.SessionId));
     }
 }
예제 #2
0
        private void controller_SessionResetComplete(object sender, Framework.Dispatcher.SessionIdEventArgs e)
        {
            SessionClient.Instance.ClearSessionRequestReceived -= controller_SessionResetComplete;

            //Enable the button if this form made the reset call.
            if (e.SessionId == _sessionResetting)
            {
                SetControls(false);
                _sessionResetting = string.Empty;
            }
            RefreshGrid();

            TraceFactory.Logger.Error("Session {0} was reset.".FormatWith(e.SessionId));
        }