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