Exemple #1
0
        /// <summary>
        /// Handles the Click event of the menuViewPreferences control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void menuViewPreferences_Click(object sender, System.EventArgs e)
        {
            PreferencesDialog form = new PreferencesDialog();

            form.Settings = settings;
            if (form.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }
            settings = form.Settings;
            UpdateBoard();
        }
Exemple #2
0
 /// <summary>
 /// Handles the Click event of the menuViewPreferences control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void menuViewPreferences_Click(object sender, System.EventArgs e)
 {
     PreferencesDialog form = new PreferencesDialog();
     form.Settings = settings;
     if(form.ShowDialog(this) == DialogResult.Cancel)
         return;
     settings = form.Settings;
     UpdateBoard();
 }