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; }); }
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; }); }