protected override void PluginInitialize() { if (manager == null) { manager = new StationManager(); manager.StationsRefreshing += delegate { DisableRefresh(); }; manager.StationsLoadFailed += delegate { EnableRefresh(); }; manager.StationsLoaded += delegate { EnableRefresh(); }; } }
protected override void PluginInitialize() { if(manager == null) { manager = new StationManager(); manager.StationsRefreshing += delegate { DisableRefresh(); }; manager.StationsLoadFailed += delegate { EnableRefresh(); }; manager.StationsLoaded += delegate { EnableRefresh(); }; } }