public static MDReport Create(IV8MetadataContainer Container, SerializedList Content) { MDReport NewReport = new MDReport(); NewReport.Container = Container; StaticMDIdentifiers ids = new StaticMDIdentifiers(); ids.AttributesCollection = "7e7123e0-29e2-11d6-a3c7-0050bae0a776"; ids.TablesCollection = "b077d780-29e2-11d6-a3c7-0050bae0a776"; ids.FormsCollection = "a3b368c0-29e2-11d6-a3c7-0050bae0a776"; ids.TemplatesCollection = "3daea016-69b7-4ed4-9453-127911372fe6"; ReadFromStream(NewReport, Content, ids); return(NewReport); }
public MDObjectBase RaiseObject() { SerializedList procData = GetMainStream(_reader); string classID = procData.Items[3].Items[0].ToString(); MDObjectBase newObj; switch (classID) { case kExtProccessing: newObj = MDDataProcessor.Create(new NonDisposableContainer(this), procData); break; case kExtReport: newObj = MDReport.Create(new NonDisposableContainer(this), procData); break; default: throw new InvalidOperationException("Unknown container"); } return(newObj); }