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