public static void Test() { List <NOMPT> points; var run = Snapshot.IsRunningViewerStatus(); Snapshot.WriteRunningViewerStatus(); points = _randomPoints(); Snapshot.Store(points, "random:points"); points = _randomPoints(); Snapshot.Store(points, "random:points"); points = _randomPoints(); Snapshot.Store(points, "random:points"); points = _randomPoints(); Snapshot.Store(points, "more random/^%@#$%points"); points = _randomPoints(); Snapshot.Store(points, "more random/^%@#$%points"); points = _randomPoints(); Snapshot.Store(points, "more random/^%@#$%points"); Snapshot.LimitHistory(); List <SnapshotCategory> all = Snapshot.GetCollection(); all[0].Selected = all[0].Collection[0]; var headers = all[0].GetSelectedSnapshotHeaderTitles(); var types = all[0].GetSelectedSnapshotHeaderTypes(); string name = all[0].Name; SnapshotItem sItem = all[0].GetSelectedItem(); for (int i = 0; i < headers.Count; i++) { string header = headers[i]; var typ = types[i]; switch (typ) { case TypeCode.Boolean: break; case TypeCode.Char: break; case TypeCode.SByte: break; case TypeCode.Byte: break; case TypeCode.Int16: break; case TypeCode.UInt16: break; case TypeCode.Int32: List <int> iList = sItem.GetIntegerArray(header); break; case TypeCode.UInt32: break; case TypeCode.Int64: break; case TypeCode.UInt64: break; case TypeCode.Single: List <float> flist = sItem.GetFloatArray(header); break; case TypeCode.Double: List <double> dList = sItem.GetDoubleArray(header); break; case TypeCode.Decimal: break; case TypeCode.DateTime: break; case TypeCode.String: List <string> sList = sItem.GetStringArray(header); break; default: break; } } foreach (var item in all) { item.LineColor = Color.Red; } Snapshot.WriteSettings(all); run = Snapshot.IsRunningViewerStatus(); }