Ejemplo n.º 1
0
        private void Server_LineMetadata(string id, LineMetadata e)
        {
            Line line = Program.Lines[e.Index];

            if (line.Caller == null)
            {
                return;
            }

            line.Caller.Name     = e.Name;
            line.Caller.Location = e.Location;
            line.Caller.Comment  = e.Comment;

            Program.Server.Broadcast(new LineMetadata(line));
        }
Ejemplo n.º 2
0
        private void Client_LineMetadata(string id, LineMetadata e)
        {
            if (e.Index >= Lines.Count)
            {
                return;
            }

            Line line = Lines[e.Index];

            if (line.Caller == null)
            {
                return;
            }

            line.Caller.Name     = e.Name;
            line.Caller.Location = e.Location;
            line.Caller.Comment  = e.Comment;

            elements[line].Update();
        }
		private void GenerateLine(DynamicILGenerator g, LineMetadata line)
		{
			this.lineGenerator.Value.Emit(g, line);
		}