/// <summary>
 /// Deep copy an existing death record, into a new death record
 /// with a specified name
 /// </summary>
 /// <param name="sName">The uniqe ID to be applied to the copy</param>
 /// <param name="oSource">the death record to copy</param>
 /// <returns></returns>
 public static DeathRecord Create( string sName, DeathRecord oSource )
 {
     var oNew = new SimpleObject(sName, oSource);
     return new DeathRecord(oNew);
 }
        private void convertToJSONToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var drSample = DeathRecord.Create("GrandfathersDeath");
            drSample.AgeInYears = 30;
            drSample.CertificateNumber = 12345;
            drSample.City = "Chicago";
            drSample.County = "Cook";
            drSample.FilingDate = new DateTime(1918, 4, 28, 12, 0, 0);
            drSample.FirstName = "Frantisek";
            drSample.LastName = "Vlcek";
            drSample.PageNumber = 123;
            drSample.Volume = "A";
            drSample.Gender = CustomTypes.Gender.Male;
            drSample.DeathDate = new DateTime(1918, 4, 26, 12, 0, 0);

            var oChild = new SimpleObject("Cross-Reference", "Reference");
            oChild.AddProperty("SampleProperty", "SampleValue");
            drSample.AddChild(oChild);

            var txtOut = new System.IO.StreamWriter(@"C:\users\james\FrantisekVlcek.json");
            var jsFmt = new JsonSaveFormat();
            jsFmt.Stream(txtOut, drSample);
            txtOut.Close();
        }