void t_TransitionCompletedEvent(object sender, Transition.Args e) { PtOrderList pol = ((OrdersView)owningView).getPtOrderList(); pol.RemoveFromList(order, SessionManager.Instance.securityContext); t.TransitionCompletedEvent -= new EventHandler <Transition.Args>(t_TransitionCompletedEvent); }
private void getNewOrderList() { loadingCircle1.Enabled = true; loadingCircle1.Visible = true; loadingCircle1.Active = true; if (orders != null) { orders.ReleaseListeners(this); } orders = new PtOrderList(); orders.userLogin = SessionManager.Instance.ActiveUser.userLogin; orders.groupName = SessionManager.Instance.UserGroup; orders.orderDate = null; //get all existing orders orders.AddHandlersWithLoad(OrdersListChanged, OrdersListLoaded, OrderChanged); }