예제 #1
0
파일: UITestLogic.cs 프로젝트: hkiaipc/c2
 public UITestLogic( Communi.CommuniSoft soft )
 {
     this.Soft = soft;
     this.Soft.CommuniPortManager.CommuniPortReceivedEvent +=
         new CommuniPortReceivedEventHandler(CommuniPortManager_CommuniPortReceivedEvent);
     this.Soft.TaskManager.Timeout = TimeSpan.FromSeconds(1);
     this.BuildHardware();
     this.AddTestTask();
 }
예제 #2
0
파일: UITestLogic.cs 프로젝트: hkiaipc/c2
        public UITestLogic()
        {
            DeviceDefineBuilderBase d = new XmlDeviceDefineBuild( "xml\\devicedefine.xml" );
            HardwareBuilderBase h = new XmlHardwareBuilder("xml\\hardware.xml");
            TaskFactoryCollectionBuilder t = new XmlTaskFactoryCollectionBuilder("xml\\task.xml");
            ListenBuilderBase l = new XmlListenBuilder("xml\\listenport.xml");

            CommuniSoftBuilder b = new CommuniSoftBuilder(d, h, t, l);
            //Soft = b.Build();
            b.Build(CommuniSoft.Default);
            Soft = CommuniSoft.Default;
        }