/// <summary> /// Open the Account form with blank data so that a new record may be entered. /// </summary> /// <remarks>Created: Theo Crous 14/11/2011</remarks> protected override void OnNewRecord() { try { base.OnNewRecord(); AccountForm childForm = new AccountForm(); ShowForm(childForm); } catch (Exception ex) { if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex)) { throw ex; } } }
/// <summary> /// Open the Account form for the record indicated in the parameter. /// </summary> /// <param name="Id">The id (primary key) of the record to open.</param> /// <remarks>Created: Theo Crous 14/11/2011</remarks> protected override void OnOpenRecord(long Id) { try { base.OnOpenRecord(Id); if (Id != -1 && checkOutOfSiteAccess(Id)) { AccountForm childForm = new AccountForm(Id); ShowForm(childForm); } } catch (Exception ex) { if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex)) { throw ex; } } }