示例#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;
 }
示例#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();
        }
示例#3
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();
        }
示例#4
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;
 }