/// <summary>
        /// Author: Gunardi Saputra
        /// Created Date: 02/20/2019
        ///
        /// The btnSave_Click method is used for saving a new sponsor or updating
        /// an existing sponsor in the system.
        ///
        /// Update: Gunardi Saputra
        /// Date: 04/19/2019
        /// remove statusID
        /// </summary>
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            if (((string)btnSave.Content) == "Submit" || ((string)btnSave.Content) == "Save")
            {
                if (!ValidateInput())
                {
                    return;
                }
                DateTime sponsorDate;

                if (dtpDateAdded.Text == "")
                {
                    sponsorDate = DateTime.Now;
                }
                else
                {
                    sponsorDate = DateTime.Parse(dtpDateAdded.Text);
                }
                Sponsor newSponsor = new Sponsor
                {
                    //SponsorID = int.Parse(txtSponsorID.Text),
                    Name             = txtName.Text,
                    Address          = txtAddress.Text,
                    City             = txtCity.Text,
                    State            = (string)cboState.SelectedItem,
                    PhoneNumber      = txtPhoneNumber.Text,
                    Email            = txtEmail.Text,
                    ContactFirstName = txtContactFirstName.Text,
                    ContactLastName  = txtContactLastName.Text,
                    //StatusID = (string)cboStatusID.SelectedItem,
                    DateAdded = sponsorDate
                };
                try
                {
                    if (_existingSponsor == null)
                    {
                        _sponsorManager.InsertSponsor(newSponsor);
                        SetError("");
                        MessageBox.Show("Sponsor Was Created Successfully: " +
                                        "\nSponsorID: " + newSponsor.SponsorID +
                                        "\nName: " + newSponsor.Name +
                                        "\nDateAdded: " + newSponsor.DateAdded.ToString("MM/dd/yyyy") +
                                        "\nAddress: " + newSponsor.Address);
                    }
                    else
                    {
                        newSponsor.Active = (bool)chkActive.IsChecked;
                        if (_sponsorManager.UpdateSponsor(_existingSponsor, newSponsor))
                        {
                            SetError("");
                            MessageBox.Show("Sponsor Updated Successfully: " +
                                            "\nOld SponsorID: " + _existingSponsor.SponsorID +
                                            "\nOld Name: " + _existingSponsor.Name +
                                            "\nOld DateAdded: " + _existingSponsor.DateAdded.ToString("MM/dd/yyyy") +
                                            "\nOld Address: " + _existingSponsor.Address +

                                            "\nNew SponsorID: " + newSponsor.SponsorID +
                                            "\nNew Name: " + newSponsor.Name +
                                            "\nNew DateAdded: " + newSponsor.DateAdded.ToString("MM/dd/yyyy") +
                                            "\nNew Address: " + newSponsor.Address);
                        }
                        else
                        {
                            MessageBox.Show("Failed to Update Sponsor");
                        }
                    }
                }
                catch (Exception ex)
                {
                    SetError(ex.Message);
                }

                Close();
            }
            else if (((string)btnSave.Content) == "Update")
            {
                setEditable();
            }
            else
            {
                MessageBox.Show(btnSave.Content.GetType() + " " + btnSave.Content);
            }
        }