Esempio n. 1
0
            public EnabledState(SimpleStateMachine <ServiceEvent> stateMachine, PurchasingProjectSettings provider)
                : base(k_StateNameEnabled, stateMachine, provider)
            {
                topicForNotifications          = Notification.Topic.PurchasingService;
                notLatestPackageInstalledInfo  = string.Format(k_NotLatestPackageInstalledInfo, k_PurchasingPackageName);
                packageInstallationHeadsup     = string.Format(k_PackageInstallationHeadsup, k_PurchasingPackageName);
                duplicateInstallWarning        = null;
                packageInstallationDialogTitle = string.Format(k_PackageInstallationDialogTitle, k_PurchasingPackageName);

                ModifyActionForEvent(ServiceEvent.Disabled, HandleDisabling);
            }
Esempio n. 2
0
 public DisabledState(SimpleStateMachine <ServiceEvent> stateMachine, PurchasingProjectSettings provider)
     : base(k_StateNameDisabled, stateMachine, provider)
 {
     ModifyActionForEvent(ServiceEvent.Enabled, HandleEnabling);
 }