private void btnDataList_Click(object sender, EventArgs e) { FormDataList f = new FormDataList(); f.ShowDialog(); // }
private void btnDataList_Click(object sender, EventArgs e) { FormDataList f = new FormDataList(); f.StartPosition = FormStartPosition.CenterScreen; f.ShowDialog(); }
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"); }
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; }