protected override void OnNewRecord() { try { base.OnNewRecord(); DiscountForm childForm = new DiscountForm(); ShowForm(childForm); } catch (Exception ex) { if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex)) { throw ex; } } }
protected override void OnOpenRecord(long Id) { try { base.OnOpenRecord(Id); if (Id != -1) { DiscountForm childForm = new DiscountForm(Id); ShowForm(childForm); } } catch (Exception ex) { if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex)) { throw ex; } } }