示例#1
0
        // ****************************************************************
        // DisplayEditMode
        //
        /// <summary>
        /// Retrieves the values for the subject and body from the database
        /// and dispalys them in textboxs for the user to edit
        /// </summary>
        // ****************************************************************
        private void DisplayEditMode()
        {
            // Now populate the subject/body with the appropriate values
            // read in the email template's subject/body
            EmailTemplate email = Emails.GetEmailTemplateInfo(Convert.ToInt32(emailTemplates.SelectedItem.Value));

            // Set the values for subject/body
            subject.Text = email.Subject;
            body.Text    = email.Body;
        }