예제 #1
0
 private void FireStateChanged(PartnershipState newState, PartnershipState oldState)
 {
     if (this.StateChanged != null)
     {
         this.StateChanged(this, new PartnershipStateChangeEventArgs(newState, oldState));
     }
 }
예제 #2
0
        private void OnStateChanged(PartnershipState oldState)
        {
            Trace.WriteLine(string.Concat(new object[] { "---- Partnership switched from ", oldState, " to ", this.CurrentState, " ", this.Device.Name }));
            this.FireStateChanged(this.CurrentState, oldState);
            switch (this.CurrentState)
            {
            case PartnershipState.LoadingSources:
                this.ResetSourceErrors();
                break;

            case PartnershipState.PreparingSync:
                this.ResetSyncErrors();
                break;
            }
            switch (oldState)
            {
            case PartnershipState.VerifyingSources:
            case PartnershipState.RespondingToChanges:
                this.FireSourceErrors();
                return;
            }
        }
예제 #3
0
        private void OnStateChanged(PartnershipState oldState)
        {
            Trace.WriteLine(string.Concat(new object[] { "---- Partnership switched from ", oldState, " to ", this.CurrentState, " ", this.Device.Name }));
            this.FireStateChanged(this.CurrentState, oldState);
            switch (this.CurrentState)
            {
                case PartnershipState.LoadingSources:
                    this.ResetSourceErrors();
                    break;

                case PartnershipState.PreparingSync:
                    this.ResetSyncErrors();
                    break;
            }
            switch (oldState)
            {
                case PartnershipState.VerifyingSources:
                case PartnershipState.RespondingToChanges:
                    this.FireSourceErrors();
                    return;
            }
        }
예제 #4
0
 private void FireStateChanged(PartnershipState newState, PartnershipState oldState)
 {
     if (this.StateChanged != null)
     {
         this.StateChanged(this, new PartnershipStateChangeEventArgs(newState, oldState));
     }
 }
 public PartnershipStateChangeEventArgs(PartnershipState newState, PartnershipState oldState)
 {
     this.NewState = newState;
     this.OldState = oldState;
 }
예제 #6
0
 public PartnershipStateChangeEventArgs(PartnershipState newState, PartnershipState oldState)
 {
     this.NewState = newState;
     this.OldState = oldState;
 }