public static PlayerPageViewModel GetPlayerVM() { if (Player == null) { Player = new PlayerPageViewModel(); } return(Player); }
public MainWindowViewModel() { // InstalledApps ia = new InstalledApps(); #region Init instance = this; BassHelper = BassHelper ?? new BassNetHelper(); Log = Log ?? new LogsPageViewModel(); Player = Player ?? new PlayerPageViewModel(); Radio = Radio ?? new RadioPageViewModel(); Main = Main ?? new MainPageViewModel(); Settings = Settings ?? new SettingsPageViewModel(); Telegram = Telegram ?? new TelegramAuth(); TwitchPage = TwitchPage ?? new TwitchPageViewModel(); Telebot = Telebot ?? new TelegramBot(); Proxy = Proxy ?? new ProxyHelper(); Internet = Internet ?? new InternetConnection(); Vk = Vk ?? new VkAuth(); #endregion SelectedViewModel = Main; IsAlertOn = "null"; }