Пример #1
0
        /// <summary>
        /// 添加新行
        /// </summary>
        /// <returns></returns>
        private void AddNew()
        {
            var data = new PassengerInformationViewModel(Items.First().StartDateTime)
            {
                Passer = new PasserModel {
                    Index = _passerIndex
                },
                IdType      = EnumIDType.NormalId,
                SexType     = EnumSexType.UnKnown,
                PasserIndex = _passerIndex
            };

            _passengerInformationItems.Add(data);
            _passerIndex++;
        }
Пример #2
0
 private bool CanExecuteUnSelectCommand(PassengerInformationViewModel model)
 {
     return(!IsBusy);
 }
Пример #3
0
 private void ExecuteUnSelectCommand(PassengerInformationViewModel model)
 {
     _list.Remove(model);
 }
Пример #4
0
 private void ExecuteSelectCommand(PassengerInformationViewModel model)
 {
     _list.Add(model);
 }