public ProbingViewModel(GrblViewModel grblmodel, ProbingProfiles profile) { Grbl = grblmodel; // Execute = new ActionCommand<bool>(ExecuteProgram); Program = new Program(this); Profiles = profile.Profiles; Profile = profile.Profiles[0]; HeightMap.PropertyChanged += HeightMap_PropertyChanged; }