bool isBtnClicked = false;
private void button1_Click_1(object sender, EventArgs e)
{
isBtnClicked = true;
}
case "_":
if (res.StartsWith("_"))
{
System.Windows.Forms.MessageBox.Show("Send indent to Device");
unscr = Encoding.ASCII.GetBytes("@!#");
networkStream.Write(unscr, 0, unscr.Length);
if (isBtnClicked)
{
string d = ifile.IniReadValue("Config Section", "INDENT_NO");
unscr = Encoding.ASCII.GetBytes("!" + data);
networkStream.Write(unscr, 0, unscr.Length);
hash = Encoding.ASCII.GetBytes("#");
networkStream.Write(hash, 0, hash.Length);
isBtnClicked = false;
}
else
{ return;
}
-KR