blob: 9255150146d1b74337637521817f08078276be94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.EmbroideryUI;
using Tango.MachineStudio.Common.Notifications;
using Tango.PMR.Embroidery;
using Tango.SharedUI;
namespace Tango.MachineStudio.Developer.ViewModels
{
public class EmbroideryImportViewVM : DialogViewVM
{
private String _fileName;
public String FileName
{
get { return _fileName; }
set { _fileName = value; RaisePropertyChangedAuto(); }
}
public RelayCommand ImportCommand { get; set; }
public EmbroideryFile EmbroideryFile { get; set; }
public ObservableCollection<EmbroideryPath> Paths { get; set; }
public List<IEmbroideryMaterial> EmbroideryMaterials { get; set; }
private IEmbroideryMaterial _selectedEmbroideryMaterial;
public IEmbroideryMaterial SelectedEmbroideryMaterial
{
get { return _selectedEmbroideryMaterial; }
set { _selectedEmbroideryMaterial = value; RaisePropertyChangedAuto(); }
}
private IEmbroideryMaterial _selectedStabilizer;
public IEmbroideryMaterial SelectedStabilizer
{
get { return _selectedStabilizer; }
set { _selectedStabilizer = value; RaisePropertyChangedAuto(); }
}
private double _embroideryMaterialThickness;
public double EmbroideryMaterialThickness
{
get { return _embroideryMaterialThickness; }
set { _embroideryMaterialThickness = value; RaisePropertyChangedAuto(); }
}
private double _stabilizerThickness;
public double StabilizerThickness
{
get { return _stabilizerThickness; }
set { _stabilizerThickness = value; RaisePropertyChangedAuto(); }
}
private bool _hasStabilizer;
public bool HasStabilizer
{
get { return _hasStabilizer; }
set { _hasStabilizer = value; RaisePropertyChangedAuto(); }
}
public EmbroideryImportViewVM() : base()
{
EmbroideryMaterials = EmbroideryMaterialsHelper.GetAvailableEmbroideryMaterials();
SelectedEmbroideryMaterial = EmbroideryMaterials.FirstOrDefault();
SelectedStabilizer = EmbroideryMaterials.FirstOrDefault();
EmbroideryMaterialThickness = 1;
StabilizerThickness = 1;
ImportCommand = new RelayCommand(Import);
}
private void Import()
{
Accept();
}
}
}
|