コード例 #1
0
ファイル: PopupLogic.cs プロジェクト: ForNeVeR/Smith
 public static IDisposable BindPopup(
     this PopupModel model)
 {
     return(BindPopup(
                model,
                Locator.Current.GetService <IPopupController>()));
 }
コード例 #2
0
ファイル: PopupLogic.cs プロジェクト: ForNeVeR/Smith
 public static IDisposable BindPopup(
     this PopupModel model,
     IPopupController popupController)
 {
     return(model.Context.CloseCommand
            .SubscribeOn(RxApp.TaskpoolScheduler)
            .ObserveOn(RxApp.MainThreadScheduler)
            .Accept(_ =>
     {
         popupController.Hide();
     }));
 }