public static GistCreateView Show(UIViewController parent) { var ctrl = new GistCreateView(); var weakVm = new WeakReference<GistCreateViewModel>(ctrl.ViewModel); ctrl.ViewModel.SaveCommand.Subscribe(_ => parent.DismissViewController(true, null)); ctrl.NavigationItem.LeftBarButtonItem = new UIBarButtonItem { Image = Images.Buttons.CancelButton }; ctrl.NavigationItem.LeftBarButtonItem.GetClickedObservable().Subscribe(_ => { weakVm.Get()?.CancelCommand.Execute(null); parent.DismissViewController(true, null); }); parent.PresentViewController(new ThemedNavigationController(ctrl), true, null); return ctrl; }
public static GistCreateView Show(UIViewController parent) { var ctrl = new GistCreateView(); var weakVm = new WeakReference <GistCreateViewModel>(ctrl.ViewModel); ctrl.ViewModel.SaveCommand.Subscribe(_ => parent.DismissViewController(true, null)); ctrl.NavigationItem.LeftBarButtonItem = new UIBarButtonItem { Image = Images.Buttons.CancelButton }; ctrl.NavigationItem.LeftBarButtonItem.GetClickedObservable().Subscribe(_ => { weakVm.Get()?.CancelCommand.Execute(null); parent.DismissViewController(true, null); }); parent.PresentViewController(new ThemedNavigationController(ctrl), true, null); return(ctrl); }
public EditSource(GistCreateView dvc) : base(dvc) { }
public EditSource(GistCreateView dvc) : base(dvc.TableView, true) { _parent = dvc; }
public EditSource(GistCreateView dvc) : base (dvc) { }
public EditSource(GistCreateView dvc) : base (dvc) { _parent = dvc; }
public EditSource(GistCreateView dvc) : base(dvc) { _parent = dvc; }
private void GoToCreateGist() { GistCreateView.Show(this); }