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