private async Task OpenStorageFile(StorageFile file) { if (file != null) { await MediaPlayerViewModel.ChangeSourceAsync(file); FreqCounterViewModel.ResetFreqCounter(); IsFreqCounterOpen = true; _DataService.SaveOpenedFileToMru(file); } }
public SelectionRectangleComputationViewModel(Color color, SelectionRectangleViewModel parent) { (this.color, this.parent) = (OxyColor.FromArgb(255, color.R, color.G, color.B), parent); FreqCounterViewModel.IsRoiSameAsResultSomeChange(false);//obsolete result, when new roi is added }