Ejemplo n.º 1
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            statusPanel.Text        = "Process stoped. Action stop....";
            statusPanel.ToolTipText = "Last Activity";

            if (process != null)
            {
                process.abort();
                process = null;
            }
            txtIP.ReadOnly   = false;
            txtPort.ReadOnly = false;
            txtID.ReadOnly   = false;
            txtPass.ReadOnly = false;
            btnStart.Enabled = true;
            btnStop.Enabled  = false;

            btnStart.BackgroundImage       = Properties.Resources.btn_start_sm;
            btnStart.BackgroundImageLayout = ImageLayout.Stretch;
            btnStop.BackgroundImage        = Properties.Resources.btn_stop_sm_g;
            btnStop.BackgroundImageLayout  = ImageLayout.Stretch;
        }