Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            int heigth = this.Height;

            UtilityClass.hide_show(this, ref heigth, timer1);

            if (HbClient != null && HbClient.Client != null && HbClient.Connected && Hbstream != null)
            {
                var command = BitConverter.GetBytes(0xFE01);
                try
                {
                    Hbstream.Write(command, 0, command.Length);
                }
                catch (Exception)
                {
                    HbClient.Close();
                }
            }
        }