Stream(ArrayList data, JigPromptGeometryOptions jigPromptGeoOpts) { data.Add(new Snoop.Data.ClassSeparator(typeof(JigPromptGeometryOptions))); data.Add(new Snoop.Data.Point3d("Base point", jigPromptGeoOpts.BasePoint)); data.Add(new Snoop.Data.Bool("Use base point", jigPromptGeoOpts.UseBasePoint)); JigPromptAngleOptions jigPromptAngleOpts = jigPromptGeoOpts as JigPromptAngleOptions; if (jigPromptAngleOpts != null) { Stream(data, jigPromptAngleOpts); return; } JigPromptDistanceOptions jigPromptDistanceOpts = jigPromptGeoOpts as JigPromptDistanceOptions; if (jigPromptDistanceOpts != null) { Stream(data, jigPromptDistanceOpts); return; } JigPromptPointOptions jigPromptPointOpts = jigPromptGeoOpts as JigPromptPointOptions; if (jigPromptPointOpts != null) { Stream(data, jigPromptPointOpts); return; } }
Stream(ArrayList data, JigPromptOptions jigPromptOpts) { data.Add(new Snoop.Data.ClassSeparator(typeof(JigPromptOptions))); data.Add(new Snoop.Data.String("Cursor", jigPromptOpts.Cursor.ToString())); data.Add(new Snoop.Data.String("User input controls", jigPromptOpts.UserInputControls.ToString())); JigPromptGeometryOptions jigPromptGeoOpts = jigPromptOpts as JigPromptGeometryOptions; if (jigPromptGeoOpts != null) { Stream(data, jigPromptGeoOpts); return; } JigPromptStringOptions jigPromptStringOpts = jigPromptOpts as JigPromptStringOptions; if (jigPromptStringOpts != null) { Stream(data, jigPromptStringOpts); return; } }