Exemplo n.º 1
0
        public void AddOrderStatus()
        {
            OrderStatus c = this.dm.CreateObject <OrderStatus>();

            c.Id = GuidComb.Generate();
            dm.AddOrderStatus(c);

            OrderStatusViewModel vm = new OrderStatusViewModel(c);

            AllOrderStatuss.Add(vm);
            CurrentOrderStatus = vm;
        }
Exemplo n.º 2
0
 private void DeleteCurrentOrderStatus()
 {
     dm.RemoveOrderStatus(CurrentOrderStatus.Model);
     AllOrderStatuss.Remove(CurrentOrderStatus);
     CurrentOrderStatus = null;
 }