private void buttonStart_Click(object sender, EventArgs e) { TcpServerForGPRSDev.Get().Stop(); if (!TcpServerForGPRSDev.Get().Start()) { timerRestartTcpServer.Enabled = true; buttonStart.Enabled = false; buttonStop.Enabled = true; } CmdOp.Get().Start(); }
private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { CmdOp.Get().Stop(); TcpServerForGPRSDev.Get().Stop(); }
private void buttonStop_Click(object sender, EventArgs e) { CmdOp.Get().Stop(); TcpServerForGPRSDev.Get().Stop(); }