private void Init() { InitializeComponent(); _vm = new AddEditHeadModel(); _vm.OnFinish += (sender, eventArgs) => this.Close(); DataContext = _vm; this.PreviewKeyDown += HandleEsc; }
public SaveNewHead(AddEditHeadModel addEditHeadModel) { _addEditHeadModel = addEditHeadModel; _headManager = new HeadManager(GKSFactory.GetHeadRepository()); }
public CancelAddHeadPage(AddEditHeadModel addEditHeadModel) { _addEditHeadModel = addEditHeadModel; }