Пример #1
0
 protected void SendLowStockReportImageButton_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     MessageBox1.ClearMessage();
     if (this.EmailReportToTextBox.Text.Length > 0)
     {
         if (ProductInventory.EmailLowStockReport(this.EmailReportToTextBox.Text, MTApp.CurrentStore.StoreName, MTApp))
         {
             MessageBox1.ShowOk("Report sent!");
         }
         else
         {
             MessageBox1.ShowWarning("Report failed to send.");
         }
     }
     else
     {
         MessageBox1.ShowWarning("You must enter an email address to send the report!");
     }
 }