private void WriteJson() { SettingsGenerall settings = new SettingsGenerall { AddScale = AddScale, SelectedScaleX = SelectedScaleX, SelectedScaleY = SelectedScaleY, SelectedScaleZ = SelectedScaleZ, AddRotate = AddRotate, SelectedRotateX = SelectedRotateX, SelectedRotateY = SelectedRotateY, SelectedRotateZ = SelectedRotateZ, AddAuto = AddAuto, AddRauto = AddRauto, AddGlass = AddGlass, AddMirror = AddMirror, Mirror = Mirror, AddShi = AddShi, Shi = Shi, AddRef = AddRef, Ref = Ref, AddTra = AddTra, Tra = Tra }; jsonService.WriteJson(settings, configFile); if (publisher == Publisher.None) { return; } generateFile = new GenerateMatFile(file, rgb, false); generateFile.CreateMatFile(true); }
private void WriteJson() { SettingsSolid settings = new SettingsSolid { SolidColorName = SolidColorName, SelectedColor = SelectedColor }; jsonService.WriteJson(settings, configFile); var generateFile = new GenerateMatFile(SolidColorName, ColorConverterService.GetRgbFromColor(SelectedColor), false); generateFile.CreateMatFile(true); }
private void OnSelectedFilesUpdateEvent(ObservableCollection <IFiles> files) { if (files.Count <= 0) { IsPreviewVisible = false; return; } IsPreviewVisible = true; var fileToPreview = files.FirstOrDefault(); if (fileToPreview == null) { return; } var generateFile = new GenerateMatFile(fileToPreview.FullFilePath, ColorConverterService.GetRgbFromImage(fileToPreview.FullFilePath)); generateFile.CreateMatFile(true); }