public LayoutPersist(MainLayout layout)
 {
     Layout = layout;
 }
        public MainForm()
        {
            InitializeComponent();

            History = new List<BenchmarkSession>();
            ViewButtons = new List<ToolStripButton>();

            ViewButtons = toolStripMain.Items.OfType<ToolStripButton>().Where(x => x.CheckOnClick).ToList();

            // Loggers and tracers.
            Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger);
            Logger.Info(Environment.NewLine);
            Logger.Info("Application started...");

            Trace.Listeners.Add(new Log4NetTraceListener(Settings.Default.TestLogger));
            Trace.Listeners.Add(new Log4NetTraceListener(Settings.Default.TestLogger));

            this.SuspendLayout();

            toolStripMain.Items.Insert(toolStripMain.Items.Count - 2, new ToolStripControlHost(trackBar1));

            // Layout.
            MainLayout = new MainLayout(dockPanel1, new ToolStripComboBox[] { cbFlowsCount, cbRecordCount }.ToList(), ViewButtons, trackBar1, CONFIGURATION_FOLDER);

            MainLayout.Initialize();
            MainLayout.TreeView.CreateTreeView();
            MainLayout.LoadDocking();

            MainLayout.SelectFrame(TestMethod.Write);

            Manager = new ProjectManager(MainLayout);

            View_Click(btnSizeView, EventArgs.Empty);

            openFileDialogProject.InitialDirectory = CONFIGURATION_FOLDER;
            saveFileDialogProject.InitialDirectory = CONFIGURATION_FOLDER;

            WireDragDrop(Controls);

            this.ResumeLayout();
        }
        public ProjectManager(MainLayout layout)
        {
            Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger);

            MainLayout = layout;
        }
 public LayoutPersist(MainLayout layout)
 {
     Layout = layout;
 }
        public ProjectManager(MainLayout layout)
        {
            Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger);

            MainLayout = layout;
        }