Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Validating event of the tbEmailPort control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.CancelEventArgs"/> instance containing the event data.</param>
        private void tbEmailPort_Validating(object sender, CancelEventArgs e)
        {
            int ignore;

            e.Cancel = !SettingsForm.IsValidPort(tbEmailPort.Text, "Email Server port", out ignore);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Tools > Options.
 /// Open the settings form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void optionsMenuItem_Click(object sender, EventArgs e)
 {
     using (SettingsForm form = new SettingsForm())
     {
         form.ShowDialog(this);
     }
 }