Preamble Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestPreamble ( )
{
   LEADDICOM1.GetDSPreamble();
   MessageBox.Show(LEADDICOM1.Preamble);
}

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestPreamble2()
{
   LEADDICOM1.Preamble = Text1.Text;
   LEADDICOM1.SetDSPreamble();
}