Exemplo n.º 1
0
 public static void ShowIn(this CrossViewModel crossViewModel, UIView containerView)
 {
     if (crossViewModel.CrossView is UIViewController viewController)
     {
         viewController.ShowIn(containerView);
     }
     else
     {
         throw new Exception("No case for crossview of that type");
     }
 }
Exemplo n.º 2
0
        public async Task <IActionResult> DeleteCross(string crossId)
        {
            string crossPath = await crossesService.GetCrossPathByIdAsync(crossId);

            var model = new CrossViewModel
            {
                FilePath = crossPath,
                CrossId  = crossId,
            };

            return(View(model));
        }
Exemplo n.º 3
0
 public void ShowView <TViewModel>(TViewModel crossViewModel) where TViewModel : CrossViewModel
 {
     RemoveView();
     SubCrossViewModel = crossViewModel;
     crossViewModel.ShowIn(this);
 }
Exemplo n.º 4
0
 public void RemoveView()
 {
     SubCrossViewModel?.Dismiss();
     SubCrossViewModel = null;
 }