예제 #1
0
        //public ICommand UploadCommand
        //{

        //}
        /// <summary>
        /// 添加指定数量的混合组态信息
        /// </summary>
        /// <param name="rowsAmount"></param>
        public void AddNewRecordExecute(int rowsAmount)
        {
            _linkageConfigMixedService.TheController = this.TheController;
            List <LinkageConfigMixed> lstLinkageConfigMixed = _linkageConfigMixedService.Create(rowsAmount);

            foreach (var v in lstLinkageConfigMixed)
            {
                EditableLinkageConfigMixed eLCM = new EditableLinkageConfigMixed();
                eLCM.Controller   = v.Controller;
                eLCM.ControllerID = v.ControllerID;
                eLCM.ID           = v.ID;
                eLCM.Code         = v.Code;
                MixedLinkageConfigInfoObservableCollection.Add(eLCM);
            }
        }
예제 #2
0
        //public ICommand UploadCommand
        //{

        //}
        /// <summary>
        /// 添加指定数量的混合组态信息
        /// </summary>
        /// <param name="rowsAmount"></param>
        public void AddNewRecordExecute(int rowsAmount)
        {
            using (new WaitCursor())
            {
                _linkageConfigMixedService.TheController = this.TheController;
                List <LinkageConfigMixed> lstLinkageConfigMixed = _linkageConfigMixedService.Create(rowsAmount);
                foreach (var v in lstLinkageConfigMixed)
                {
                    EditableLinkageConfigMixed eLCM = new EditableLinkageConfigMixed();
                    eLCM.Controller   = v.Controller;
                    eLCM.ControllerID = v.ControllerID;
                    eLCM.ID           = v.ID;
                    eLCM.Code         = v.Code;
                    eLCM.ActionType   = v.ActionType;
                    eLCM.TypeA        = v.TypeA;
                    eLCM.TypeB        = v.TypeB;
                    eLCM.TypeC        = v.TypeC;
                    MixedLinkageConfigInfoObservableCollection.Add(eLCM);
                }
            }
        }