public MachiningPiercingEditDiaglogViewModel(MachiningLib_PiercingDto data) { _SelPiercingData = data; _ApplicateCmd = new RelayCommand(OnApplicateClick); _SaveCmd = new RelayCommand(OnSaveClick); }
public MachiningPiercingEditDiaglog(MachiningLib_PiercingDto data) { InitializeComponent(); this.DataContext = new MachiningPiercingEditDiaglogViewModel(data); Messenger.Default.Register <string>(this, "MachiningPiercingEditDiaglogClose", msg => { this.Close(); }); }