public bool Transmit(TransmissionMethod method, IInformationState state) { if (method.Equals(TransmissionMethod.Synchronous)) { return TransmitSynchronous(state); }; if (method.Equals(TransmissionMethod.Asynchronous)) { return TransmitAsynchronous(state); }; return false; }
private void AddTransMissionMethod(TransmissionMethod tm) { var cellX = document.Tables[transmissionMethodIndex].Rows[1].Cells[1].Paragraphs.FirstOrDefault(); cellX.Append(tm.XAxis); var cellY = document.Tables[transmissionMethodIndex].Rows[2].Cells[1].Paragraphs.FirstOrDefault(); cellY.Append(tm.YAxis); var cellZ = document.Tables[transmissionMethodIndex].Rows[3].Cells[1].Paragraphs.FirstOrDefault(); cellZ.Append(tm.ZAxis); }