Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PageTitle      = Localization.GetString("CustomerProductSales");
            PageMessageBox = ucMessageBox;

            if (Request.Params["pid"] != null)
            {
                ProductId = Request.Params["pid"];
            }
            else
            {
                PageMessageBox.ShowError(Localization.GetString("MissingParameters"));
            }
        }
Пример #2
0
        protected void ShowMessage(string message, ErrorTypes type)
        {
            switch (type)
            {
            case ErrorTypes.Ok:
                PageMessageBox.ShowOk(message);
                break;

            case ErrorTypes.Info:
                PageMessageBox.ShowInformation(message);
                break;

            case ErrorTypes.Error:
                PageMessageBox.ShowError(message);
                break;

            case ErrorTypes.Warning:
                PageMessageBox.ShowWarning(message);
                break;
            }
        }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     PageMessageBox.ShowError(SettingsHelper.ErrorPageHeader);
 }