/// <summary> /// Initialization of Editor /// </summary> public static void Init() { Enjin.IsDebugLogActive = true; _lastTabIndex = 0; SelectedAppIndex = 0; LastSelectedApp = 0; MinCostScale = 100000000; CostScaleDivider = 1000000000; _homeTab = new HomeTab(SkinTheme); //_teamTab = new TeamTab(SkinTheme); //_identitiesTab = new IdentitiesTab(SkinTheme); //_CryptoItemsTab = new CryptoItemsTab(SkinTheme); //_walletTab = new WalletTab(SkinTheme); //_settingsTab = new SettingsTab(SkinTheme); NotificationMonitor = new NotificationMonitor(); }
public void Test() { NotificationProvider provider = new NotificationProvider(); NotificationMonitor observer1 = new NotificationMonitor("Taxi Filiale 1"); NotificationMonitor observer2 = new NotificationMonitor("Taxi Filiale 2"); observer1.Subscribe(provider); //observer2.Subscribe(provider); provider.InfoStatus(712, "Neue Fahrt - Berlin-Weißensee nach Lichtenberg", 3); provider.InfoStatus(400, "Neue Fahrt - Berlin Lichterfelde", 1); provider.InfoStatus(712, "Fahrt storniert - Berlin-Weißensee nach Lichtenberg", 3); provider.LastNotificationClaimed(); Console.WriteLine("ende"); // Console.WriteLine("Taxi Filiale 2 - Keine Fahrer"); //observer2.Unsubscribe(); observer1.Subscribe(provider); provider.InfoStatus(400, "Neue Fahrt - Berlin Charlottenburg", 3); }