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); }
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); }