Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void SelectAll()
        {
            SelectedFilesCollection.Clear();

            foreach (var selectedFile in FileCollection)
            {
                selectedFile.IsSelected = true;
                SelectedFilesCollection.Add(selectedFile);
            }

            RaiseCanExecuteChanged();

            EventAggregator.GetEvent <StatusBarMessageUpdateEvent>().Publish(Resources.StatusBarSelectAll);
        }