/// <summary> /// Initializes the main GUI. /// </summary> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> /// <exception cref="IOException">Failed to read a config file.</exception> /// <exception cref="UnauthorizedAccessException">Access to a configuration file was not permitted.</exception> /// <exception cref="InvalidDataException">The config data is damaged.</exception> public MainForm(bool machineWide) { InitializeComponent(); HandleCreated += MainForm_HandleCreated; MouseWheel += MainForm_MouseWheel; _machineWide = machineWide; var services = new ServiceLocator(new MinimalTaskHandler(this)) {Config = {NetworkUse = NetworkLevel.Minimal}}; _tileManagement = new AppTileManagement( services.FeedManager, services.CatalogManager, IconCacheProvider.GetInstance(), tileListMyApps, tileListCatalog, _machineWide); }
/// <summary> /// Initializes the main GUI. /// </summary> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> /// <exception cref="IOException">Failed to read a config file.</exception> /// <exception cref="UnauthorizedAccessException">Access to a configuration file was not permitted.</exception> /// <exception cref="InvalidDataException">The config data is damaged.</exception> public MainForm(bool machineWide) { InitializeComponent(); HandleCreated += MainForm_HandleCreated; MouseWheel += MainForm_MouseWheel; _machineWide = machineWide; var services = new ServiceLocator(new MinimalTaskHandler(this)) { Config = { NetworkUse = NetworkLevel.Minimal } }; _tileManagement = new AppTileManagement( services.FeedManager, services.CatalogManager, tileListMyApps, tileListCatalog, _machineWide); }