public UpdatePage(AcceptUpdateBehavior onAcceptUpdate, Action onBack, Func <string> getDisplayTitle, Func <string> fetchReleaseNotes)
 {
     this.onAcceptUpdate    = onAcceptUpdate;
     this.back              = new KeyValuePair <string, Action> ("Back", Reset + onBack);
     this.install           = new KeyValuePair <string, Action> ("Install", InstallUpdate);
     this.retry             = new KeyValuePair <string, Action> ("Retry", InstallUpdate);
     this.cancel            = new KeyValuePair <string, Action> ("Cancel", Cancel);
     this.getDisplayTitle   = getDisplayTitle;
     this.fetchReleaseNotes = fetchReleaseNotes;
 }
Example #2
0
 public UpdatePage(AcceptUpdateBehavior onAcceptUpdate, Action onBack, Func<string> getDisplayTitle, Func<string> fetchReleaseNotes)
 {
     this.onAcceptUpdate = onAcceptUpdate;
     this.back = new KeyValuePair<string, Action> ("Back", Reset + onBack);
     this.install = new KeyValuePair<string, Action> ("Install", InstallUpdate);
     this.retry = new KeyValuePair<string, Action> ("Retry", InstallUpdate);
     this.cancel = new KeyValuePair<string, Action> ("Cancel", Cancel);
     this.getDisplayTitle = getDisplayTitle;
     this.fetchReleaseNotes = fetchReleaseNotes;
 }