예제 #1
0
        /// <summary>
        ///
        ///     This will change the submit area to show that the
        ///     send all was successful by changing the colours of
        ///     the panel and components.
        ///
        /// </summary>
        private void ShowSuccess()
        {
            Button_Cancel.Hide();
            Button_Preview.Hide();
            Button_Send.Hide();
            Label_Error.Hide();

            Button_Dashboard.BackColor = Color.FromArgb(19, 174, 71);   // Green
            Button_Dashboard.ForeColor = Color.White;
            Button_Dashboard.Show();

            Label_SubmitTitle.ForeColor = Color.White;
            Label_SubmitTitle.Text      = "Success.";

            Panel_Submit.BackColor         = Color.FromArgb(19, 174, 71); // Green
            Label_Recruiter.ForeColor      = Color.White;
            Label_RecruiterName.ForeColor  = Color.White;
            Label_Applicants.ForeColor     = Color.White;
            Label_ApplicantTotal.ForeColor = Color.White;
        }
예제 #2
0
 /// <summary>
 ///
 ///     Hide the error message to let the user
 ///     know that it is no longer an issue.
 ///
 /// </summary>
 private void HideError()
 {
     Label_Error.Hide();
 }
예제 #3
0
 /// <summary>
 ///
 ///     Display an error message to let the user
 ///     know what they did wrong.
 ///
 /// </summary>
 /// <param name="message"> The error message </param>
 private void DisplayError(string message)
 {
     Label_Error.Text = message;
     Label_Error.Show();
 }