コード例 #1
0
ファイル: MatFileGenViewModel.cs プロジェクト: mheob/SHD.KPSA
        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();
        }
コード例 #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);
        }