Exemple #1
0
		void ConfigSetup()
		{
			LicenseKeyStore =
				new SingleValueStoreCached<string>
				{
					BaseStore =
						new SingleValueStoreRelayWithExceptionToDelegate<string>
						{
							BaseStore = new StringStoreToFilePath
							{
								FilePath = LicenseKeyStoreFilePath,
							},

							ExceptionDelegate = e => LogEntryWriteNow(new LogEntry { LicenseKeyStoreException = e }),
						}
				};

			UI.Main.LicenseKeyStore = LicenseKeyStore;
		}
Exemple #2
0
        void ConfigSetup()
        {
            LicenseKeyStore =
                new SingleValueStoreCached <string>
            {
                BaseStore =
                    new SingleValueStoreRelayWithExceptionToDelegate <string>
                {
                    BaseStore = new StringStoreToFilePath
                    {
                        FilePath = LicenseKeyStoreFilePath,
                    },

                    ExceptionDelegate = e => LogEntryWriteNow(new LogEntry {
                        LicenseKeyStoreException = e
                    }),
                }
            };

            UI.Main.LicenseKeyStore = LicenseKeyStore;
        }
Exemple #3
0
        void ConfigSetup()
        {
            LicenseKeyStore =
                new SingleValueStoreCached <string>
            {
                BaseStore =
                    new SingleValueStoreRelayWithExceptionToDelegate <string>
                {
                    BaseStore = new StringStoreToFilePath
                    {
                        FilePath = LicenseKeyStoreFilePath,
                    },

                    ExceptionDelegate = e => LogEntryWriteNow(new LogEntry {
                        LicenseKeyStoreException = e
                    }),
                }
            };

            UI.ExeMain.LogEntryWrite   = this.LogEntryWrite;
            UI.ExeMain.LicenseKeyStore = LicenseKeyStore;
            UI.ExeMain.BrowserServiceAppDomainSetupType = typeof(InterfaceAppDomainSetup);
        }
Exemple #4
0
        public App()
        {
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;

            LicenseKeyStore =
                new SingleValueStoreCached <string>
            {
                BaseStore =
                    new SingleValueStoreRelayWithExceptionToDelegate <string>
                {
                    BaseStore = new StringStoreToFilePath
                    {
                        FilePath = LicenseKeyStoreFilePath,
                    },

                    ExceptionDelegate = e => e.MessageBoxException(),
                }
            };

            UIAPI = new Limbara.Script.HostToScript
            {
                CallbackGetApp = new Func <Interface.RemoteControl.IApp>(() => ToScriptApp),
            };
        }