示例#1
0
        /// <summary>
        /// Handles the Click event of the btn_CopyCurrentSolutionAs control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void btn_CopyCurrentSolutionAs_Click(object sender, EventArgs e)
        {
            var solution = GetSelectedSolution();

            if (solution != null)
            {
                solution = solution.Clone() as Solution;
                solution.ConnectionSetting = GetConnectionStringModelByControl();
                SaveSolutionAs form = new SaveSolutionAs(this, this.xDocument, solution);
                form.ShowDialog();
            }
        }
示例#2
0
 /// <summary>
 /// Handles the Click event of the btn_CopyCurrentSolutionAs control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void btn_CopyCurrentSolutionAs_Click(object sender, EventArgs e)
 {
     var solution = GetSelectedSolution();
     if (solution != null)
     {
         solution = solution.Clone() as Solution;
         solution.ConnectionSetting = GetConnectionStringModelByControl();
         SaveSolutionAs form = new SaveSolutionAs(this, this.xDocument, solution);
         form.ShowDialog();
     }
 }