protected override void OnOpenNew() { Profit = new OtherProfit { Date = DateTime.Now, Account = ContextManager.ActiveAccounts.FirstOrDefault() }; }
protected override void OnOpenEdit(object argEntity) { Profit = argEntity as OtherProfit; }