Exemple #1
0
 public bool RemovePopupModelFromStack(IPopupModel model, string popupID = null)
 {
     if (popupID == null)
     {
         return(DefaultPopup.PopPopupModel(model));
     }
     else
     {
         if (popups.TryGetValue(popupID, out Popup popup))
         {
             return(popup.PopPopupModel(model));
         }
     }
     return(false);
 }
Exemple #2
0
 public bool AddPopupModelToStack(IPopupModel model, string popupID = null)
 {
     if (popupID == null)
     {
         DefaultPopup.PushPopupModel(model);
         return(true);
     }
     else
     {
         if (popups.TryGetValue(popupID, out Popup popup))
         {
             popup.PushPopupModel(model);
             return(true);
         }
     }
     return(false);
 }