Exemplo n.º 1
0
 public static TwitchPageViewModel GetTwitchVM()
 {
     if (TwitchPage == null)
     {
         TwitchPage = new TwitchPageViewModel();
     }
     return(TwitchPage);
 }
Exemplo n.º 2
0
        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";
        }