Пример #1
0
        private void frmBuktiTransferKeluarDetailUpdate_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (_rowIDTransferBankDetail.ToString() != "00000000-0000-0000-0000-000000000000")
            {
                if (this.Caller is Kasir.frmBuktiTransferKeluar)
                {
                    Kasir.frmBuktiTransferKeluar frmCaller = (Kasir.frmBuktiTransferKeluar) this.Caller;

                    if (formMode == enumFormMode.New)
                    {
                        frmCaller.RefreshRowBuktiTransfer(_rowIDTransferBank);
                        frmCaller.RefreshRowBuktiTransferDetail(_rowIDTransferBankDetail);
                        frmCaller.FindRowDetail("RowIDDetail", _rowIDTransferBankDetail.ToString());
                    }
                    else if (formMode == enumFormMode.Update)
                    {
                        frmCaller.RefreshRowBuktiTransfer(_rowIDTransferBank);
                        frmCaller.RefreshRowBuktiTransferDetail(_rowIDTransferBankDetail);
                    }
                }
                else if (this.Caller is Kasir.frmBuktiTransferKeluarUpdate)
                {
                    Kasir.frmBuktiTransferKeluarUpdate frmCaller2 = (Kasir.frmBuktiTransferKeluarUpdate) this.Caller;
                    if (formMode == enumFormMode.New)
                    {
                        frmCaller2.RefreshRowData(_rowIDTransferBankDetail);
                        frmCaller2.FindRowData("RowIDDetail", _rowIDTransferBankDetail.ToString());
                    }
                    else if (formMode == enumFormMode.Update)
                    {
                        frmCaller2.RefreshRowData(_rowIDTransferBankDetail);
                    }
                }
            }
        }
Пример #2
0
 private void frmBuktiTransferMasukDetailUpdate_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_rowIDTransferBankDetail.ToString() != "00000000-0000-0000-0000-000000000000")
     {
         if (this.Caller is Kasir.frmBuktiTransferKeluarUpdate)
         {
             Kasir.frmBuktiTransferKeluarUpdate frmCaller1 = (Kasir.frmBuktiTransferKeluarUpdate) this.Caller;
             frmCaller1.RefreshRowData(_rowIDTransferBankDetail);
             if (formMode == enumFormMode.New)
             {
                 frmCaller1.FindRowData("RowIDDetail", _rowIDTransferBankDetail.ToString());
             }
         }
     }
 }