Beispiel #1
0
        /// <summary>
        /// 设置应用程序框架。
        /// </summary>
        /// <param name="application"></param>
        public void SetApplication(WindowsFormApplicationClass application)
        {
            AC.Base.DeviceSearchs.DeviceSearch search = new AC.Base.DeviceSearchs.DeviceSearch(application);
            search.Filters.Add(new AC.Base.DeviceSearchs.ParentIdFilter(0));
            //search.Filters.Add(new AC.Base.DeviceSearchs.StatusFilter(1));
            DeviceList deviceList = new DeviceList();

            deviceList.SetApplication(application);
            deviceList.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Controls.Add(deviceList);
            deviceList.SetDeviceSearch(search);
            deviceList.DeviceSearch(1);
        }