예제 #1
0
 public App()
 {
     ViewModel = new MainViewModel();
     ViewModel.Root = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
     ViewModel.LoadSearchKey();
     ViewModel.LoadDataTV();
     ViewModel.IsUpdate = false;
 }
예제 #2
0
 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;
 }