Example #1
0
        private void showRosterEmail(int?id)
        {
            hfCommunication.Value = id.ToString();
            CurrentGroup.LoadAttributes();
            cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean();
            pnlMain.Visible  = false;
            pnlEmail.Visible = true;

            DisplayEmailRecipients();
        }
Example #2
0
        protected void btnEmail_Click(object sender, EventArgs e)
        {
            tbBody.Text    = "";
            tbSubject.Text = "";

            CurrentGroup.LoadAttributes();
            cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean();
            pnlMain.Visible  = false;
            pnlEmail.Visible = true;

            DisplayEmailRecipients();
        }
Example #3
0
        protected void btnSMS_Click(object sender, EventArgs e)
        {
            tbMessage.Text = "";

            CurrentGroup.LoadAttributes();
            cbSMSSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean();
            pnlMain.Visible            = false;
            pnlSMS.Visible             = true;

            DisplaySMSRecipients();

            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "smsCharCount", smsScript, true);
        }
Example #4
0
        protected void btnEmail_Click(object sender, EventArgs e)
        {
            gMembers.SelectedKeys.Clear();
            hfCommunication.Value = null;
            // If we have a CommandArgument, then we should only select one member.
            if (sender is LinkButton && !string.IsNullOrWhiteSpace((( LinkButton )sender).CommandArgument))
            {
                hfCommunication.Value = (( LinkButton )sender).CommandArgument;
                gMembers.SelectedKeys.Add((( LinkButton )sender).CommandArgument.AsInteger());
            }
            tbBody.Text    = "";
            tbSubject.Text = "";

            CurrentGroup.LoadAttributes();
            cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean();
            pnlMain.Visible  = false;
            pnlEmail.Visible = true;

            DisplayEmailRecipients();
        }