private void SelectNone() { SelectedFilesCollection.Clear(); RaiseCanExecuteChanged(); EventAggregator.GetEvent <StatusBarMessageUpdateEvent>().Publish(Resources.StatusBarSelectNone); }
private void StartGeneration() { if (SelectedVariantTab == 1) { SelectedFilesCollection.Clear(); SelectedFilesCollection.Add(new MatFileGenFiles { FullFilePath = SelectedPath + SolidColorName + EXTENSION.Substring(1), FileName = SolidColorName }); } var fg = new FileGeneration { FileCollection = FileCollection, GenerationFiles = SelectedFilesCollection, Extension = EXTENSION.Substring(1), SelectedPath = SelectedPath, SolidRgb = SolidRgb, IsFromJpg = SelectedVariantTab == 0 }; fg.DoGenerationAsync(); }
private void SelectAll() { SelectedFilesCollection.Clear(); foreach (var selectedFile in FileCollection) { selectedFile.IsSelected = true; SelectedFilesCollection.Add(selectedFile); } RaiseCanExecuteChanged(); EventAggregator.GetEvent <StatusBarMessageUpdateEvent>().Publish(Resources.StatusBarSelectAll); }