Beispiel #1
0
 private void frmPPCUpdate_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.DialogResult == DialogResult.OK)
     {
         TabelDO frmCaller = (TabelDO)this.Caller;
         frmCaller.RefreshDataDetailDO();
         frmCaller.FindHeader("RowID", _rowID.ToString());
     }
 }
Beispiel #2
0
 private void frmDODetailUpdate_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.DialogResult == DialogResult.OK)
     {
         if (this.Caller is frmDOUpdate)
         {
             frmDOUpdate frmCaller1 = (frmDOUpdate)this.Caller;
             TabelDO     frmCaller2 = (TabelDO)frmCaller1.Caller;
             frmCaller2.RefreshRowDataDO(_headerID.ToString());
             frmCaller2.RefreshDataDetailDO();
             frmCaller2.FindHeader("RowID", _headerID.ToString());
             frmCaller2.FindDetail("DetailRowID", _rowID.ToString());
         }
         else if (this.Caller is TabelDO)
         {
             if (formMode == enumFormMode.New)
             {
                 TabelDO frmCaller = (TabelDO)this.Caller;
                 frmCaller.RefreshDataDetailDO();
                 frmCaller.FindDetail("DetailRowID", _rowID.ToString());
             }
             else
             {
                 TabelDO frmCaller = (TabelDO)this.Caller;
                 frmCaller.RefreshDataDetailDO();
                 frmCaller.FindDetail("DetailRowID", _rowID.ToString());
             }
         }
         else
         {
             if (this.Caller is frmDOUpdate)
             {
                 frmDOUpdate frmCaller1 = (frmDOUpdate)this.Caller;
                 TabelDO     frmCaller2 = (TabelDO)frmCaller1.Caller;
                 frmCaller2.RefreshRowDataDO(_headerID.ToString());
                 frmCaller2.FindHeader("RowID", _headerID.ToString());
             }
         }
     }
 }