public CalcAlgorithmBenefitNormFormulaAddChangeForm(CalcAlgorithmBenefitNormFormula calcAlgorithmBenefitNormFormula)
     : this()
 {
     if ((calcAlgorithmBenefitNormFormula != null) && (calcAlgorithmBenefitNormFormula != CalcAlgorithmBenefitNormFormula.Null))
     {
         this.m_CalcAlgorithmBenefitNormFormula = calcAlgorithmBenefitNormFormula;
     }
 }
 public CalcAlgorithmBenefitNormFormulaAddChangeForm()
 {
     this.m_CalcAlgorithmBenefitNormFormula = CalcAlgorithmBenefitNormFormula.Null;
     this.InitializeComponent();
 }
 private void tsbAddAlgBenNorm_Click(object sender, System.EventArgs e)
 {
     CalcAlgorithmBenefitNormFormula calcAlgorithmBenefitNormFormula = new CalcAlgorithmBenefitNormFormula();
     CalcAlgorithmBenefitNormFormulaAddChangeForm form = new CalcAlgorithmBenefitNormFormulaAddChangeForm(calcAlgorithmBenefitNormFormula);
     if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         this.bsCalcAlgorithmBenefitNormFormulas.Add(calcAlgorithmBenefitNormFormula);
         this.bsCalcAlgorithmBenefitNormFormulas.set_Sort(this.bsCalcAlgorithmBenefitNormFormulas.get_Sort());
         this.bsCalcAlgorithmBenefitNormFormulas.set_Position(this.bsCalcAlgorithmBenefitNormFormulas.IndexOf(calcAlgorithmBenefitNormFormula));
     }
 }