Пример #1
0
        protected void ShowError(string message, string completeMessage)
        {
            MasterPage masterPage = this.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseShopAdminMasterPage ShopAdministrationMasterPage = masterPage as BaseShopAdminMasterPage;

            if (ShopAdministrationMasterPage != null)
            {
                ShopAdministrationMasterPage.ShowError(message, completeMessage);
            }
        }
Пример #2
0
        protected void ShowMessage(string message)
        {
            if (this.Page == null)
            {
                return;
            }

            MasterPage masterPage = this.Page.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseShopAdminMasterPage ShopAdministrationMasterPage = masterPage as BaseShopAdminMasterPage;

            if (ShopAdministrationMasterPage != null)
            {
                ShopAdministrationMasterPage.ShowMessage(message);
            }
        }