/// <summary> /// Handler for client receiving a chip debug start confirm message. /// </summary> /// <param name="chipDebugStartStatus">the operation status</param> private void Client_chipDebugDataStartConfirm(ChipDebugStartStatus chipDebugStartStatus) { if (chipDebugStartStatus == ChipDebugStartStatus.DEBUG_START_OK) { this.textBoxInfo.AppendText("chip debug start: succeeded"); this.textBoxInfo.AppendText(Environment.NewLine); } else if (chipDebugStartStatus == ChipDebugStartStatus.DEBUG_START_FAILED_ALREADY_RUNNING) { this.textBoxInfo.AppendText("chip debug start: failed, debug mode already running"); this.textBoxInfo.AppendText(Environment.NewLine); } else if (chipDebugStartStatus == ChipDebugStartStatus.DEBUG_START_FAILED_NOT_SUPPORTED) { this.textBoxInfo.AppendText("chip debug start: failed, debug mode not supported for this chip"); this.textBoxInfo.AppendText(Environment.NewLine); } else if (chipDebugStartStatus == ChipDebugStartStatus.DEBUG_START_FAILED_CHIP_NOT_ATTACHED) { this.textBoxInfo.AppendText("chip debug start: failed, no chip is attached to the server"); this.textBoxInfo.AppendText(Environment.NewLine); } else { this.textBoxInfo.AppendText("chip debug start: unknown return value"); this.textBoxInfo.AppendText(Environment.NewLine); } }
/// <summary> /// handle chip debug data start confirm events /// </summary> /// <param name="chipDebugStartStatus">the operation status</param> private void NotifyChipDebugDataStartConfirm(ChipDebugStartStatus chipDebugStartStatus) { if (this.chipDebugDataStartConfirm != null) { this.chipDebugDataStartConfirm(chipDebugStartStatus); } }