private void tsbChange_Click(object sender, System.EventArgs e)
 {
     BenefitNormsForGas currentBS = this.GetCurrentBS();
     if (currentBS != BenefitNormsForGas.Null)
     {
         BenefitNormsForGasAddChangeForm form = new BenefitNormsForGasAddChangeForm(currentBS);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             this.bsBenefitNormsForGas.set_Sort(this.bsBenefitNormsForGas.get_Sort());
             this.bsBenefitNormsForGas.set_Position(this.bsBenefitNormsForGas.IndexOf(currentBS));
         }
     }
 }
 private void tsbAdd_Click(object sender, System.EventArgs e)
 {
     BenefitNormsForGas bnfe = new BenefitNormsForGas();
     BenefitNormsForGasAddChangeForm form = new BenefitNormsForGasAddChangeForm(bnfe);
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
     {
         this.bsBenefitNormsForGas.Add(bnfe);
         this.bsBenefitNormsForGas.set_Sort(this.bsBenefitNormsForGas.get_Sort());
         this.bsBenefitNormsForGas.set_Sort(this.bsBenefitNormsForGas.get_Sort());
         this.bsBenefitNormsForGas.set_Position(this.bsBenefitNormsForGas.IndexOf(bnfe));
     }
 }