Пример #1
0
        private void cmdADD_Click(object sender, EventArgs e)
        {
            Guid             RekeningRowID = (Guid)dataGridViewRekBank.SelectedCells[0].OwningRow.Cells["AccountRowID"].Value;
            String           MataUangID    = (String)dataGridViewRekBank.SelectedCells[0].OwningRow.Cells["MataUangID"].Value;
            PlafonBankUpdate ifrmChild     = new PlafonBankUpdate(this, RekeningRowID, MataUangID);

            ifrmChild.ShowDialog();
            Plafon_RefreshData();
        }
Пример #2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (this.dataGridViewPlafon.Rows.Count > 0)
     {
         Guid             RekeningRowID = (Guid)dataGridViewRekBank.SelectedCells[0].OwningRow.Cells["AccountRowID"].Value;
         String           MataUangID    = (String)dataGridViewRekBank.SelectedCells[0].OwningRow.Cells["MataUangID"].Value;
         Guid             RowID         = (Guid)dataGridViewPlafon.SelectedCells[0].OwningRow.Cells["DetailRowID"].Value;
         PlafonBankUpdate ifrmChild     = new PlafonBankUpdate(this, RekeningRowID, RowID, MataUangID);
         ifrmChild.ShowDialog();
         Plafon_RefreshData();
         dataGridViewPlafon.FindRow("DetailRowID", RowID.ToString());
     }
 }