private Terminal ConvertTerminalData(TerminalData terminalData) { Terminal terminal = new Terminal(terminalData.Direction); terminal.Name = terminalData.Name; return(terminal); }
private TerminalData ConvertTerminal(BaseElement element) { Terminal terminal = (Terminal)element; TerminalData data = new TerminalData(terminal.Name, terminal.Direction); if (terminal.IsConnected) { data.Connection = terminal.Connection.Name; } return(data); }