Ejemplo n.º 1
0
 public static Com_SerialPort GetAndConfigurePort(string instanceName, Hashtable configuration)
 {
     Com_SerialPort port = GetPort(instanceName);
     port.PortConfig = configuration;
     port.Tag = instanceName;
     return port;
 }
Ejemplo n.º 2
0
        public Port(ref Com_SerialPort _drvcport)
        {
            InitializeComponent();

            // Initialize communication port
            _port = _drvcport;
            InitializePortConfiguration(_port.PortConfig);
        }
Ejemplo n.º 3
0
        public static Com_SerialPort GetPort(string instanceName)
        {
            if(_portCollection.ContainsKey(instanceName))
                return _portCollection[instanceName];

            _portCollection[instanceName] = new Com_SerialPort();

            return _portCollection[instanceName];
        }
        // Driver Components
        private void InitializeDriverComponents()
        {
            // initialize objects
            port = new Com_SerialPort();
            func = new CoreLib();

            // perforom configation com-port
            port.LoadPortConfig();
            //port.Open();

            // perform configuration user's interfaces
            portui = new UI.AppUI.Port(ref port);
            driverui = new UI.AppUI.Tree();
            ((TreeView)driverui.Controls["functionsTree"]).NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.NodeMouseDoubleClick);
        }
        public uiWndAdditionalPortCommands()
        {
            InitializeComponent();

            port = new Com_SerialPort();
        }
Ejemplo n.º 6
0
        public static Com_SerialPort GetPort(string instanceName)
        {
            if(_portCollection.ContainsKey(instanceName))
                return _portCollection[instanceName];

            _portCollection[instanceName] = new Com_SerialPort();

            return _portCollection[instanceName];
        }