コード例 #1
0
ファイル: FormMain.cs プロジェクト: tvad0905/Anh-Duc
        private void btnDataList_Click(object sender, EventArgs e)
        {
            FormDataList f = new FormDataList();

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

            f.StartPosition = FormStartPosition.CenterScreen;
            f.ShowDialog();
        }
コード例 #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");
        }
コード例 #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;
        }