Пример #1
0
 private void EditSource()
 {
     var vm = ((SourceViewModel)ViewModel);
     var vc = new EditSourceView();
     vc.ViewModel.Init(new EditSourceViewModel.NavObject { Path = vm.Path, Branch = vm.Branch, Username = vm.Username, Repository = vm.Repository });
     vc.NavigationItem.LeftBarButtonItem = new UIBarButtonItem { Image = Images.Buttons.CancelButton };
     vc.NavigationItem.LeftBarButtonItem.Clicked += (sender, e) => DismissViewController(true, null);
     PresentViewController(new ThemedNavigationController(vc), true, null);
 }
Пример #2
0
        private void EditSource()
        {
            var vm = ((SourceViewModel)ViewModel);
            var vc = new EditSourceView();

            vc.ViewModel.Init(new EditSourceViewModel.NavObject {
                Path = vm.Path, Branch = vm.Branch, Username = vm.Username, Repository = vm.Repository
            });
            vc.NavigationItem.LeftBarButtonItem          = new UIBarButtonItem(UIBarButtonSystemItem.Cancel);
            vc.NavigationItem.LeftBarButtonItem.Clicked += (sender, e) => DismissViewController(true, null);
            PresentViewController(new ThemedNavigationController(vc), true, null);
        }