Ejemplo n.º 1
0
        private void sendEmailChk_CheckedChanged(object sender, EventArgs e)
        {
            if (sendEmailChk.Checked && !loading)
            {
                GeneralOptions go = _mceOptions.GeneralOptions; // Get the current copy of GO

                eMailSettingsForm eMailForm = new eMailSettingsForm(_pipeProxy, go);
                if (eMailForm.ShowDialog() == System.Windows.Forms.DialogResult.Abort)
                {
                    sendEmailChk.Checked = false; // the user did not enter any server address
                }
                else
                {
                    _mceOptions.UpdateGeneralOptions(go, false); // Save the updated settings
                }
            }
        }
Ejemplo n.º 2
0
        private void sendEmailChk_CheckedChanged(object sender, EventArgs e)
        {
            if (sendEmailChk.Checked && !loading)
            {
                GeneralOptions go = _mceOptions.GeneralOptions; // Get the current copy of GO

                eMailSettingsForm eMailForm = new eMailSettingsForm(_pipeProxy, go);
                if (eMailForm.ShowDialog() == System.Windows.Forms.DialogResult.Abort)
                    sendEmailChk.Checked = false; // the user did not enter any server address
                else
                    _mceOptions.UpdateGeneralOptions(go, false); // Save the updated settings
            }
        }