public SettingsViewModel(IMetroWindowManager windowManager) { this.windowManager = windowManager; DisplayName = "Settings"; DisplayIcon = PackIconMaterialKind.Settings; DisplayOrder = 3; }
public ShellViewModel(IMetroWindowManager windowManager, IAccountService accountService, IEnumerable <ITab> tabs) { this.windowManager = windowManager; this.accountService = accountService; Tabs = tabs.OrderByDescending(tab => tab.DisplayOrder.HasValue).ThenBy(tab => tab.DisplayOrder); DisplayName = "Minecraft Launcher"; }
public PacksViewModel(IMetroWindowManager windowManager, IPacksService packsService) { this.windowManager = windowManager; this.packsService = packsService; DisplayName = "Packs"; DisplayIcon = PackIconMaterialKind.Package; DisplayOrder = 2; LoadPacks(); }
public LogoutViewModel(IAccountService accountService, IMetroWindowManager windowManager) { this.accountService = accountService; this.windowManager = windowManager; DisplayName = "Log Off"; DisplayIcon = PackIconMaterialKind.LogoutVariant; DisplayOrder = 1; IsShortTab = true; }
public HomeViewModel(IAccountService accountService, INewsService newsService, IMetroWindowManager windowManager) { this.accountService = accountService; this.newsService = newsService; this.windowManager = windowManager; DisplayName = "Home"; DisplayIcon = PackIconMaterialKind.HomeOutline; DisplayOrder = 1; IsHomeTab = true; }