コード例 #1
0
ファイル: KitSelectionPage.cs プロジェクト: Barnaff/Chromania
        public KitSelectionPage(
			Func<KitsList> listAvailableKits,
			Func<List<ImportedKit>> listImportedKits,
			Action<KitsObject, ImportedKit, bool> onKitSelected,
			Action checkKitActivation,
			Action onBackClicked,
			CheckUpdateAvailable isUpdateAvailable,
			Action showUpdatePage
		)
        {
            this.listImportedKits = listImportedKits;
            this.listAvailableKits = listAvailableKits;
            this.onKitSelected = onKitSelected;
            this.checkKitActivation = checkKitActivation;
            this.back = new KeyValuePair<string, Action> ("Back", onBackClicked);
            this.viewUpdateClickHandler = new KeyValuePair<string, Action> ("View Update", showUpdatePage);
            this.isUpdateAvailable = isUpdateAvailable;
        }
コード例 #2
0
 public KitSelectionPage(
     Func <KitsList> listAvailableKits,
     Func <List <ImportedKit> > listImportedKits,
     Action <KitsObject, ImportedKit, bool> onKitSelected,
     Action checkKitActivation,
     Action onBackClicked,
     CheckUpdateAvailable isUpdateAvailable,
     Action showUpdatePage
     )
 {
     this.listImportedKits   = listImportedKits;
     this.listAvailableKits  = listAvailableKits;
     this.onKitSelected      = onKitSelected;
     this.checkKitActivation = checkKitActivation;
     this.back = new KeyValuePair <string, Action> ("Back", onBackClicked);
     this.viewUpdateClickHandler = new KeyValuePair <string, Action> ("View Update", showUpdatePage);
     this.isUpdateAvailable      = isUpdateAvailable;
 }
コード例 #3
0
		public KitSelectionPage(
			Func<KitsList> listAvailableKits,
			Func<List<ImportedKit>> listImportedKits,
			Func<KitsObject, ImportedKit, KeyValuePair<DisplayedKitStatus, Version>> displayedKitStatusAndVersion,
			Action<KitsObject, ImportedKit, DisplayedKitStatus> onKitSelected,
			Action onBackClicked,
			CheckUpdateAvailable isUpdateAvailable,
			Action showUpdatePage
		)
		{
			this.listImportedKits = listImportedKits;
			this.listAvailableKits = listAvailableKits;
			this.displayedKitStatusAndVersion = displayedKitStatusAndVersion;
			this.onKitSelected = onKitSelected;
			this.back = new KeyValuePair<string, Action> ("Back", onBackClicked);
			this.viewUpdateClickHandler = new KeyValuePair<string, Action> ("View Update", showUpdatePage);
			this.isUpdateAvailable = isUpdateAvailable;

			Update.PeriodicPinger.Enqueue (new Analytics.Events.PageViewEvent {
				ScreenName = "KitSelectionPage",
			});
		}
コード例 #4
0
        public KitSelectionPage(
            Func <KitsList> listAvailableKits,
            Func <List <ImportedKit> > listImportedKits,
            Func <KitsObject, ImportedKit, KeyValuePair <DisplayedKitStatus, Version> > displayedKitStatusAndVersion,
            Action <KitsObject, ImportedKit, DisplayedKitStatus> onKitSelected,
            Action onBackClicked,
            CheckUpdateAvailable isUpdateAvailable,
            Action showUpdatePage
            )
        {
            this.listImportedKits             = listImportedKits;
            this.listAvailableKits            = listAvailableKits;
            this.displayedKitStatusAndVersion = displayedKitStatusAndVersion;
            this.onKitSelected          = onKitSelected;
            this.back                   = new KeyValuePair <string, Action> ("Back", onBackClicked);
            this.viewUpdateClickHandler = new KeyValuePair <string, Action> ("View Update", showUpdatePage);
            this.isUpdateAvailable      = isUpdateAvailable;

            Update.PeriodicPinger.Enqueue(new Analytics.Events.PageViewEvent {
                ScreenName = "KitSelectionPage",
            });
        }