예제 #1
0
 public static void Reset(this InputFileViewModel vm)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         vm.Content  = string.Empty;
         vm.Bytes    = string.Empty;
         vm.Duration = string.Empty;
         vm.Volume   = 0.5f;
     });
 }
예제 #2
0
 public static void Set(this InputFileViewModel vm, string filename, OutputSource source)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         vm.Content  = filename;
         vm.Bytes    = source.BytesPerSecond.ToString();
         vm.Duration = source.Length.ToString();
         vm.Volume   = source.Volume;
     });
 }