Beispiel #1
0
        private void btnDataList_Click(object sender, EventArgs e)
        {
            FormDataList f = new FormDataList();

            f.ShowDialog();
            //
        }
Beispiel #2
0
        private void btnDataList_Click(object sender, EventArgs e)
        {
            FormDataList f = new FormDataList();

            f.StartPosition = FormStartPosition.CenterScreen;
            f.ShowDialog();
        }
Beispiel #3
0
        public ProtocolConfiguration(FormDataList formDataList)
        {
            InitializeComponent();
            this.TVMain       = formDataList.tvMain;
            this.formDataList = formDataList;
            WriteJsonToList();
            LoadDuLieuLenDgv();

            //cbProtocol.SelectedIndex = cbProtocol.Items.IndexOf();
            cbCOM.SelectedIndex     = cbCOM.Items.IndexOf("COM 1");
            cbBaud.SelectedIndex    = cbBaud.Items.IndexOf("9600 Baud");
            cbDataBit.SelectedIndex = cbDataBit.Items.IndexOf("8 Data bits");
            cbParity.SelectedIndex  = cbParity.Items.IndexOf("Even Parity");
            cbStopBit.SelectedIndex = cbStopBit.Items.IndexOf("1 Stop Bit");
        }
Beispiel #4
0
        public DeviceConfiguration(FormDataList formDataList)
        {
            InitializeComponent();
            this.TVMain       = formDataList.tvMain;
            this.formDataList = formDataList;
            WriteJsonToList();
            LoadDuLieuLenDgv();

            //set mặc định lên màn hình
            cbCOM.SelectedIndex     = cbCOM.Items.IndexOf("COM 1");
            cbBaud.SelectedIndex    = cbBaud.Items.IndexOf("9600 Baud");
            cbDataBit.SelectedIndex = cbDataBit.Items.IndexOf("8 Data bits");
            cbParity.SelectedIndex  = cbParity.Items.IndexOf("Even Parity");
            cbStopBit.SelectedIndex = cbStopBit.Items.IndexOf("1 Stop Bit");

            // btnXoaDuLieu.Enabled = false;
        }