private void btnAdd_Click(object sender, EventArgs e) { DataSetTpos.providerRow prRow = DBclass.DS.provider.NewproviderRow(); FormFaktura faktura = new FormFaktura(prRow); if (faktura.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DBclass.DS.provider.AddproviderRow(prRow); updateProvider(); FormCloseOK(DBclass.DS.provider.Rows[DBclass.DS.provider.Rows.Count - 1]["providerid"].ToString()); } }
private void btnEdit_Click(DataSetTpos.providerRow providerRow) { DataSetTpos.providerRow prRow = providerRow; FormFaktura faktura = new FormFaktura(prRow, true); if (faktura.ShowDialog() == System.Windows.Forms.DialogResult.OK) { //DBclass.DS.provider.AddproviderRow(prRow); updateProvider(); //FormCloseOK(DBclass.DS.provider.Rows[DBclass.DS.provider.Rows.Count - 1]["providerid"].ToString()); } }