protected Agent(SystemType systemType, IEnumerable <string> agentComments, string revision = "") { AgentCommentsList = agentComments.ToList(); var systemFactory = new SystemFactory(); SystemDescription = systemFactory.CreateSystem(systemType, revision); }
private void CreateNewProtocolMenuItem_Click(object sender, EventArgs e) { if (this.SystemDescriptionHolder == null) { return; } SystemDescription sd = this.SystemDescriptionHolder.Value; if (sd == null) { return; } Protocol p = new Protocol(sd); p.Name = ""; if (!this.ProtocolHolder.SetValue(p)) { return; } }