public object FindOrCreateReportersSnapshot(Reporter reporterActivated) { string reporterName = reporterActivated.TabText; if (this.ReportersSnapshots.ContainsKey(reporterName) == false) { this.ReportersSnapshots.Add(reporterName, reporterActivated.CreateSnapshotToStoreInScriptContext()); } return this.ReportersSnapshots[reporterName]; }
public ReporterFormWrapper(ReportersFormsManager reportersFormsManager, Reporter reporterActivated) : this() { this.reportersFormsManager = reportersFormsManager; this.reporter = reporterActivated; this.SuspendLayout(); this.Controls.Clear(); this.Controls.Add(this.reporter); this.reporter.Dock = DockStyle.Fill; this.ResumeLayout(); }