コード例 #1
0
 public List <TickerSMSSettings> SelectTickers()
 {
     using (TickerSMSSettingsActions smsTickers = new TickerSMSSettingsActions())
     {
         return(smsTickers.GetTickerSMSSettings(""));
     }
 }
コード例 #2
0
 // The id parameter name should match the DataKeyNames value set on the control
 public void SMSTickerAlertGrid_DeleteItem(string mobile)
 {
     using (TickerSMSSettingsActions smsTickers = new TickerSMSSettingsActions())
     {
         smsTickers.DeleteTickerSMSSettings(mobile);
     }
 }
コード例 #3
0
 protected void Subscribe_Click(object sender, EventArgs e)
 {
     if (txtMobile.Text.Length < 4 || txtHigh.Text.Length == 0 || txtLow.Text.Length == 0)
     {
         lblError.Visible = true;
     }
     else
     {
         using (TickerSMSSettingsActions smsLogic = new TickerSMSSettingsActions())
         {
             smsLogic.AddUpdateTickerSMSSettings(
                 new TickerSMSSettings()
             {
                 TickerName = Request.QueryString["id"],
                 TickerDate = DateTime.Parse(lblLastRead.Text),
                 High       = Decimal.Parse(txtHigh.Text.Replace("$ ", "")),
                 Low        = Decimal.Parse(txtLow.Text.Replace("$ ", "")),
                 Mobile     = "+1" + txtMobile.Text
             });
         }
     }
     Response.Redirect("/Default.aspx");
 }