Пример #1
0
 private void OnAddOne(object obj)
 {
     var addPage = new sTabAddEditEquipmentPage();
     addPage.DataContext = new sTabAddEditEquipmentViewModel(Parent);
     ((SiteRightViewModel)Parent).Tab1Page = addPage;
 }
Пример #2
0
 private void OnEdit(object obj)
 {
     var editPage = new sTabAddEditEquipmentPage();
     editPage.DataContext = new sTabAddEditEquipmentViewModel(Parent, obj as Equipment);
     ((SiteRightViewModel)Parent).Tab1Page = editPage;
 }