예제 #1
0
 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);
     }
 }
예제 #2
0
        private void AddHost_Click(object sender, RoutedEventArgs e)
        {
            EditHost hostPage = new EditHost(new Host());

            MainNavigate(hostPage);
        }