protected void OnButtonOkClicked(object sender, System.EventArgs e) { settings.weeklyDestination = destination_email_address.Text; settings.Save(); Reports.SendReport(settings.email, destination_email_address.Text, email_subject.Text, email_body.Buffer.Text, DateTime.Now); this.Destroy(); }
protected void OnButtonOkClicked(object sender, System.EventArgs e) { TaskSettings settings = new TaskSettings(); string data = interval.Text; try { settings.interval = Int32.Parse(data)*1000*60; //Convert Minutes into milliseconds. settings.name = name.Text; settings.email = email_address.Text; settings.subject = email_subject.Text; settings.destination = email_destination.Text; settings.smtpServer = smtp_server.Text; settings.smtpport = smtp_port.Text; settings.password = email_password.Text; settings.Save(); this.Destroy(); } catch (Exception i) { Notification error = new Notification("Error", i.Message, Stock.Stop); error.Show(); } }
protected void OnButtonOkClicked(object sender, System.EventArgs e) { TaskSettings settings = new TaskSettings(); string data = interval.Text; try { settings.interval = Int32.Parse(data) * 1000 * 60; //Convert Minutes into milliseconds. settings.name = name.Text; settings.email = email_address.Text; settings.subject = email_subject.Text; settings.destination = email_destination.Text; settings.smtpServer = smtp_server.Text; settings.smtpport = smtp_port.Text; settings.password = email_password.Text; settings.Save(); this.Destroy(); } catch (Exception i) { Notification error = new Notification("Error", i.Message, Stock.Stop); error.Show(); } }