public void New() { ChangeActiveItem(new Item() { Id = Guid.NewGuid(), ItemId = AutoNumberService.GetNextItemSequence(Context), Deleted = false }, false);; IsCreating = true; NotifyAll(); }
public void New() { ActiveItem = new SourcingTransaction() { Id = Guid.NewGuid(), TransactionId = AutoNumberService.GetNextSourcingSequence(Context), DateTime = DateTime.Now }; ActiveItem.PropertyChanged += (o, e) => { if (e.PropertyName == "TotalAmount") { Notify("CanSave"); } }; isCreating = true; NotifyAll(); }