예제 #1
0
        public PortCOM(string _portName, int _baudrate, Wskaznik _sf)
        {
            this.PortName = _portName;
            this.BaudRate = _baudrate;

            Console.WriteLine("Param write");
            PortName       = _portName;
            BaudRate       = _baudrate;
            Parity         = Parity.None;
            DataBits       = 8;
            RtsEnable      = false;
            DtrEnable      = false;
            f              = _sf;
            DataReceived  += new SerialDataReceivedEventHandler(f);
            ReadBufferSize = 8192;
            Console.WriteLine("Param writed");

            try
            {
                Open();
                Console.WriteLine("Opened");
            }
            catch (Exception)
            {
                MessageBox.Show("Problem z otwarciem COMu");
            }
        }
예제 #2
0
            public AFAComm(bool Enabled, byte type, Wskaznik sf)
            {
                this.type    = type;
                this.Enabled = Enabled;

                f = new Wskaznik(sf);
            }
예제 #3
0
            //public string WriteConfing;
            //public bool flagChange;

            public AT(bool Enabled, bool ModifyInAutomaticMode, string Name, Wskaznik sf)
            {
                this.Name    = Name;
                this.Enabled = Enabled;
                this.ModifyInAutomaticMode = ModifyInAutomaticMode;

                f = new Wskaznik(sf);
            }