/// <summary> /// stop recruit pump operation /// </summary> private void StopRePump(bool isStop) { GRStation st = GetGRStation(); if (st != null && IsConnected(st.DestinationIP)) { // bool isStop = chkStop.Checked; GRRePumpOpCmd c = new GRRePumpOpCmd(st, isStop ? PumpOP.Stop : PumpOP.Start); string op = string.Format("{0}补水泵", isStop ? "停止" : "启动"); XGDB.InsertCtrlLog(DateTime.Now, st.StationName, op, "xd"); CreateImmediateTaskAndExecute(c); } else { ShowNotConnectedMsg(); } }