/// <summary> /// Not the standard IoC, but it'll work just fine /// </summary> public static void RegisterDependencies(IFileStore fileStore, ICacheHost cacheHost, IDataCache dataCache, IStencilApp stencilApp, IViewPlatform platform, IMediaUploader mediaUploader) { Container.ViewPlatform = platform; Container.StencilApp = stencilApp; Container.FileStore = fileStore; Container.DataCache = dataCache; Container.CacheHost = cacheHost; Container._mediaUploader = mediaUploader; }
public ShowEventViewModel(EventModel newEvent, Guest currentGuest, bool ShowNavBar) { _event = newEvent; _guest = currentGuest; ShowTopBar = ShowNavBar; MedUploader = new MediaUploader(_guest); MedUploader.NotifyDone += NotifyDoneHandler; if (ShowNavBar) { ShowLogoutBtn = false; } else { ShowLogoutBtn = true; } }