Inserting a Context Group Example for C#

private void InsertContextGroup(ref LTDICLib.LEADDicomDS objDS)
{
   // Context Group Version
   objDS.DateTimeValueCount = 1;
   objDS.get_DateTimeValues(0).Year = 2005;
   objDS.get_DateTimeValues(0).Month = 3;
   objDS.get_DateTimeValues(0).Day = 22;
   objDS.get_DateTimeValues(0).Hours = 0;
   objDS.get_DateTimeValues(0).Minutes = 0;
   objDS.get_DateTimeValues(0).Seconds = 0;
   objDS.get_DateTimeValues(0).Fractions = 0;
   objDS.get_DateTimeValues(0).Offset = 0;
   // Insert a (testing) Context Group
   objDS.InsertContextGroup("CID XXXX", "New Context Group", true, 0);
   objDS.DateTimeValueCount = 0;
   // Fill the Context Group with some (testing) Coded Concepts
   objDS.InsertCodedConcept("CSD1", "", "CV1", "CM1", false, "", 0);
   objDS.InsertCodedConcept("CSD2", "", "CV2", "CM2", false, "", 0);
   objDS.InsertCodedConcept("CSD3", "", "CV3", "CM3", false, "", 0);
   // Refer to Enumerating the Coded Concepts of a Context Group Example
   // for C# for the procedure EnumCodedConcepts
   EnumCodedConcepts(ref objDS);
   // Delete the Context Group
   objDS.DeleteContextGroup();
}