protected void ShowError(string message, string completeMessage) { MasterPage masterPage = this.Master; if (masterPage == null) { return; } BaseAdministrationMasterPage ShopAdministrationMasterPage = masterPage as BaseAdministrationMasterPage; if (ShopAdministrationMasterPage != null) { ShopAdministrationMasterPage.ShowError(message, completeMessage); } }
protected void ShowMessage(string message) { if (this.Page == null) { return; } MasterPage masterPage = this.Page.Master; if (masterPage == null) { return; } BaseAdministrationMasterPage ShopAdministrationMasterPage = masterPage as BaseAdministrationMasterPage; if (ShopAdministrationMasterPage != null) { ShopAdministrationMasterPage.ShowMessage(message); } }