private void button_end_Click(object sender, EventArgs e) { serialPort1.WriteLine(textBox_getTcustom.Text); SetText(textBox_getTcustom.Text + "\r\n"); checkBox_delLog.Checked = false; }