public App() { ViewModel = new MainViewModel(); ViewModel.Root = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); ViewModel.LoadSearchKey(); ViewModel.LoadDataTV(); ViewModel.IsUpdate = false; }
public App() { ViewModel = new MainViewModel(); StreamMediaPlayer = new WindowsMediaPlayer(); StreamMediaPlayer.Init(); if (MusicCloudPlayer.Properties.Settings.Default.Logged) { ViewModel.Auth(); ViewModel.IsLogged = true; } else ViewModel.IsLogged = false; ViewModel.IsPlay = false; //ViewModel.Volume = MusicCloudPlayer.Properties.Settings.Default.Volume; }