Ejemplo n.º 1
0
        public fmMain()
        {
            Instance = this;

            InitializeComponent();

            connectToolStripMenuItem.DropDownItems.AddRange(SerialPort.GetPortNames()
                                                            .Select(port => new ToolStripMenuItem(port, null, clickPort)
            {
                CheckState   = CheckState.Unchecked,
                CheckOnClick = false
            } as ToolStripItem).ToArray());


            __Reader = new Timer {
                Interval = 250
            };
            __Reader.Tick += ReaderOnTick;

            __Settings = new ProjectSettings();

#if STM32
            __Port.OnDataRecieved += PortOnOnDataRecieved;
#endif

            ReadLastList();
            SetFileState();
        }
Ejemplo n.º 2
0
        public fmMain()
        {
            Instance = this;

            InitializeComponent();


            FillComPorts();

            __Settings = new ProjectSettings();

#if !DEBUG
            captureDebugDataToolStripMenuItem.Visible = false;
            debugToolStripMenuItem.Visible            = false;
#endif

            ReadLastList();
            SetFileState();
        }