Exemple #1
0
        private void OnStateWaitingForInput(object sender, ValueEventArgs <PaintDotNet.Updates.State> e)
        {
            InstallingState state = e.Value as InstallingState;

            if (state != null)
            {
                state.Finish(this.host);
                this.calledFinish = true;
            }
        }
 public override void ProcessInput(object input, out State newState)
 {
     if (input.Equals(UpdatesAction.Continue))
     {
         newState = new InstallingState(this.installerPath);
     }
     else if (input.Equals(UpdatesAction.Cancel))
     {
         newState = new DoneState();
     }
     else
     {
         throw new ArgumentException();
     }
 }
 public override void ProcessInput(object input, out State newState)
 {
     if (input.Equals(UpdatesAction.Continue))
     {
         newState = new InstallingState(this.installerPath);
     }
     else if (input.Equals(UpdatesAction.Cancel))
     {
         newState = new DoneState();
     }
     else
     {
         throw new ArgumentException();
     }
 }