Пример #1
0
        public ClientModel()
        {
            _client    = new Client();
            _agent     = new AgentModel();
            _Addresses = new List <Address>();
            _contacts  = new List <Contact>();
            _contact   = new Contact();
            _address   = new Address();

            PropertyChanged += onClientChange_updateAllClientObjects;
        }
Пример #2
0
        public OrderModel()
        {
            _currencyModel     = new CurrencyModel();
            _tax_commandModel  = new Tax_orderModel();
            _addressList       = new List <Entity.Address>();
            _billModelList     = new List <BillModel>();
            _deliveryModelList = new List <DeliveryModel>();
            _agentModel        = new AgentModel();
            _clientModel       = new ClientModel();
            _command_itemList  = new List <Order_itemModel>();

            PropertyChanged += onAddressListChange;
            PropertyChanged += onAgentModelChange;
            PropertyChanged += onClientModelChange;
        }
Пример #3
0
 public bool addUser(AgentModel userModel)
 {
     if (userModel != null)
     {
         if (UserList.Where(x => x.Agent.ID == userModel.Agent.ID).Count() == 0)
         {
             UserList.Add(userModel);
         }
         if (UserList.Count > 2)
         {
             IsGroupDiscussion = true;
         }
         onPropertyChange("UserList");
         TxtGroupName = generateDiscussionGroupName(Discussion.ID, UserList);
         return(true);
     }
     return(false);
 }