Exemplo n.º 1
0
        private void addCurr()
        {
            BPS.BLL.Currency.DataSets.dsCurr.CurrenciesRow rw = this.dsCurr1.Currencies.NewCurrenciesRow();
            EditCurr adC = new EditCurr(rw);

            adC.ShowDialog();
            if (adC.DialogResult == DialogResult.OK)
            {
                this.dsCurr1.Currencies.AddCurrenciesRow(rw);
                bllCurrency.Update();
            }
        }
Exemplo n.º 2
0
 private void editCurr()
 {
     if (!this.menuItem3.Enabled)
     {
         return;
     }
     if (this.dataView1.Count > 0)
     {
         BindingManagerBase bm = (BindingManagerBase)this.BindingContext[this.dataView1];
         BPS.BLL.Currency.DataSets.dsCurr.CurrenciesRow rw = (BPS.BLL.Currency.DataSets.dsCurr.CurrenciesRow)((DataRowView)bm.Current).Row;
         EditCurr adC = new EditCurr(rw);
         adC.ShowDialog();
         if (adC.DialogResult == DialogResult.OK)
         {
             bllCurrency.Update();
         }
     }
 }