private void processInsertVertexCommand(Command command) { var parameters = command.GetParameters(); var commandClientID = command.__getClientID(); var position = new Point3D(double.Parse(parameters[1]), double.Parse(parameters[2]), double.Parse(parameters[3])); var vertexFullID = new FullID(commandClientID, int.Parse(parameters[0])); Vertex insertedVertex = graph_.__insertVertex(position, vertexFullID); if (graph_.IsLoading() && commandClientID == graph_.__getClientID()) { graph_.__setLastCreatedVertexID(vertexFullID.GetIDinCreator()); } graph_.__raiseVertexAddedEvent(insertedVertex); }