Esempio n. 1
0
        private void SelectNone()
        {
            SelectedFilesCollection.Clear();
            RaiseCanExecuteChanged();

            EventAggregator.GetEvent <StatusBarMessageUpdateEvent>().Publish(Resources.StatusBarSelectNone);
        }
Esempio n. 2
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();
        }
Esempio n. 3
0
        private void SelectAll()
        {
            SelectedFilesCollection.Clear();

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

            RaiseCanExecuteChanged();

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