private void BackToList_Click(object sender, RoutedEventArgs e)
 {
     if (OwnerId > 0)
     {
         ListHostingUnits lhpage = new ListHostingUnits();
         MainNavigate(lhpage);
     }
     else
     {
         //is admin
         var      parenthost = app.GetHostById(CurrentHU.OwnerId);
         EditHost hostpage   = new EditHost(parenthost);
         MainNavigate(hostpage);
     }
 }
Beispiel #2
0
        private void AddHost_Click(object sender, RoutedEventArgs e)
        {
            EditHost hostPage = new EditHost(new Host());

            MainNavigate(hostPage);
        }