Beispiel #1
0
        private void OnControllerChanged(object sender, ControllerChangedEventArgs e)
        {
            switch (e.Action)
            {
            case ControllerAction.Cleared:
                NewSchedule(null);
                break;

            case ControllerAction.Saved:
                break;

            case ControllerAction.Edited:
                break;

            case ControllerAction.Deleted:

                break;

            case ControllerAction.Invalid:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Beispiel #2
0
        void OnControllerChanged(object sender, ControllerChangedEventArgs e)
        {
            switch (e.Action)
            {
            case ControllerAction.Cleared:
                if (_controller != null)
                {
                    _controller = new LegalCaseController();
                    _controller.ControllerChanged += OnControllerChanged;
                    DataContext = _controller;
                    ((LegalCaseController)_controller).CreateNew();
                    txtCaseNo.Focus();
                }
                break;

            case ControllerAction.Saved:
                break;

            case ControllerAction.Edited:
                break;

            case ControllerAction.Deleted:
                break;

            case ControllerAction.Invalid:
                Helper.ShowMessage("OOPs, Something went wrong");
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
        /// <summary>
        /// Handles the event raised when the participant that is controlling the shared conversation application resource
        /// changes. This event is raised locally even when the shared resource is not locally owned.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void _sharingModality_ControllerChanged(object sender, ControllerChangedEventArgs e)
        {
            this.Invoke(new ChangeLabelTextDelegate(ChangeLabelText), new object[] { ResourceControllerName_Label, e.ControllerName });

            //Store the Contact object for the conversation participant that now controls the shared conversation resource.
            _ResourceControllingContact = ((ApplicationSharingModality)sender).Controller.Contact;
        }
        void OnControllerChanged(object sender, ControllerChangedEventArgs e)
        {
            switch (e.Action)
            {
            case ControllerAction.Cleared:
                Initialize();
                break;

            case ControllerAction.Saved:
                break;

            case ControllerAction.Edited:
                break;

            case ControllerAction.Deleted:
                break;

            case ControllerAction.Invalid:
                Helper.ShowMessage("OOPs, Something went wrong");
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Beispiel #5
0
 /// <summary>
 /// Handles the event raised when the participant that is controlling the shared conversation application resource
 /// changes. This event is raised locally even when the shared resource is not locally owned.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void OnSharingModalityControllerChanged(object sender, ControllerChangedEventArgs e)
 {
     _log.Debug("OnSharingModalityControllerChanged");
     //Store the Contact object for the conversation participant that now controls the shared conversation resource.
     if (((ApplicationSharingModality)sender).Controller != null)
     {
         _resourceControllingContact = ((ApplicationSharingModality)sender).Controller.Contact;
     }
 }
 private void ChangeControllerHandler(object sender, ControllerChangedEventArgs e)
 {
     model.SwitchController(e.Programmer);
     view.StartIntervalTimeoutTimer(model.IntervalTimeout);
     if (model.CurrentInterval.Programmer == Programmer.Neither)
     {
         view.ResetController();
     }
     else
     {
         view.DisplayController(model.CurrentInterval.Programmer);
     }
     view.DisplayIntervals(model.Intervals);
     DisplayStats();
 }
Beispiel #7
0
 static void applicationSharingModality_ControllerChanged(object sender, ControllerChangedEventArgs e)
 {
     try
     {
         App.Current.Dispatcher.BeginInvoke(new Action(() =>
         {
             if (PresentCallBack != null)
             {
                 PresentCallBack(e.ControllerName);
             }
         }));
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(typeof(LyncHelper), ex);
     }
     finally
     {
     }
 }
Beispiel #8
0
 void OnControllerChanged(object sender, ControllerChangedEventArgs e)
 {
     RaiseAddCompleted();
     this.Close();
 }