Exemple #1
0
 /// <summary>
 /// The Cancel button was clicked.
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">An event arg Associated to the event.</param>
 private void cancelButton_Click(object sender, EventArgs e)
 {
     // In case the user presses the Cancel button, we assume he never wants to see this dialog again
     // and pretend the "Ask me every time" checkbox is unchecked even if it is really checked.
     this.askAgainCheckBoxValue = false;
     this.projectLoadOption     = ProjectLoadOption.DonNotLoad;
 }
Exemple #2
0
        /// <summary>
        /// The OK button was clicked.
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">An event arg Associated to the event.</param>
        private void okButton_Click(object sender, EventArgs e)
        {
            if (this.browseButton.Checked && !this.loadButton.Checked)
            {
                this.projectLoadOption = ProjectLoadOption.LoadOnlyForBrowsing;
            }
            else
            {
                this.projectLoadOption = ProjectLoadOption.LoadNormally;
            }

            this.askAgainCheckBoxValue = this.askAgainCheckBox.Checked;

            this.Close();
        }
        /// <summary>
        /// The OK button was clicked.
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">An event arg Associated to the event.</param>
        private void okButton_Click(object sender, EventArgs e)
        {
            if(this.browseButton.Checked && !this.loadButton.Checked)
            {
                this.projectLoadOption = ProjectLoadOption.LoadOnlyForBrowsing;
            }
            else
            {
                this.projectLoadOption = ProjectLoadOption.LoadNormally;
            }

            this.askAgainCheckBoxValue = this.askAgainCheckBox.Checked;

            this.Close();
        }
 /// <summary>
 /// The Cancel button was clicked.
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">An event arg Associated to the event.</param>
 private void cancelButton_Click(object sender, EventArgs e)
 {
     // In case the user presses the Cancel button, we assume he never wants to see this dialog again
     // and pretend the "Ask me every time" checkbox is unchecked even if it is really checked.
     this.askAgainCheckBoxValue = false;
     this.projectLoadOption = ProjectLoadOption.DonNotLoad;
 }