Example #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++;
        }
Example #2
0
 private bool CanExecuteUnSelectCommand(PassengerInformationViewModel model)
 {
     return(!IsBusy);
 }
Example #3
0
 private void ExecuteUnSelectCommand(PassengerInformationViewModel model)
 {
     _list.Remove(model);
 }
Example #4
0
 private void ExecuteSelectCommand(PassengerInformationViewModel model)
 {
     _list.Add(model);
 }