public Topic CreateMR() { /*MR Number*/ Topic mrNumber = new Topic(_mrNumber.ToString()); mrNumber.Children = new Children(); /*Unterpunkte erzeugen*/ Topics subTopics = new Topics("attached"); subTopics.AddTopic(new Topic(_mrTitel)); /*Statement Subtopic anlegen und dazugehörigen Statments hinzufügen*/ Topic statement = new Topic("Statement-List"); foreach (var item in _statementList) { statement.AddSubTopicToAttached(new Topic(item.StatementText, item.IconState)); } subTopics.AddTopic(statement); subTopics.AddTopic(new Topic("CCB")); subTopics.AddTopic(new Topic("4-Eye-Review")); subTopics.AddTopic(new Topic("Module-Test")); /*Statement Subtopic anlegen und dazugehörigen Statments hinzufügen*/ Topic measure = new Topic("Measure-List"); if (_measureList != null && _measureList.Count > 0) { foreach (var item in _measureList) { measure.AddSubTopicToAttached(new Topic(item.MessureText, item.IconState)); } } subTopics.AddTopic(measure); subTopics.AddTopic(new Topic("Branch-Responsibility")); subTopics.AddTopic(new Topic("MR Test")); /*Suptopics in das Topic hinzufügen*/ mrNumber.Children.AddTopics(subTopics); return(mrNumber); }
public static XElement CreateMR(String MRNumber, String MRText, String MRTitel, XNamespace Ns, List <String> Stellungnahmen, List <String> Messures) { Topic mrnumber = new Topic(MRNumber); mrnumber.Children = new Children(); Topics top = new Topics("attached"); mrnumber.Children.AddTopics(top); top.AddTopic(new Topic("Antragstext")); Topic stellungnahmen = new Topic("Stellungnahmen"); stellungnahmen.Children = new Children(); Topics stellungnahmenTopics = new Topics("attached"); foreach (String item in Messures) { stellungnahmenTopics.AddTopic(new Topic(item)); } top.AddTopic(stellungnahmen); top.AddTopic(new Topic("CCB")); Topic measures = new Topic("Measures"); measures.Children = new Children(); Topics measuresTopics = new Topics("attached"); foreach (String item in Messures) { measuresTopics.AddTopic(new Topic(item)); } top.AddTopic(measures); top.AddTopic(new Topic("4-Eye-Review")); top.AddTopic(new Topic("Modultest")); top.AddTopic(new Topic("Branch-Responsibility")); top.AddTopic(new Topic("MR Test")); return(Topic.CreateXmlNode(Ns, mrnumber)); }
/// <summary> /// Explicitly creates a new WAMP Pub/Sub topic. /// </summary> /// <param name="topicUri">Fully qualiffied URI used as unique <see cref="Topic"/> identifier</param> public void CreateTopic(string topicUri) { Topics.AddTopic(topicUri, true); }