public MenuItemsProvider(ReportersFormsManager reportersFormsManager, List <Type> reporterTypesAvailable)
 {
     this.reportersFormsManager = reportersFormsManager;
     this.MenuItems             = new List <ToolStripItem>();
     foreach (Type t in reporterTypesAvailable)
     {
         this.MenuItems.Add(this.MenuItemFactory(t.Name));
     }
 }
Exemple #2
0
        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();
        }