public RoutePlanner(Contract contract)
        {
            InitializeComponent();

            _activeContract = contract;
            _dataRepository = new DataRepository();
            _cacheManager = new OverrideCacheManager();
            _logger = NLog.LogManager.GetCurrentClassLogger();

            InitalizeHandlers();
            PopulateSearchForm();
        }
        public ContractOverview()
        {
            InitializeComponent();

            _dataRepository = new DataRepository();
            _cacheManager = new OverrideCacheManager();
            _logger = NLog.LogManager.GetCurrentClassLogger();

            cmbStatus.SelectedIndex = 0;
            object cacheItem = _cacheManager.Cache.GetData("ContractStatus");
            if (cacheItem != null)
                cmbStatus.Text = cacheItem.ToString();

            InitializeHandlers();
            PopulateAPIList();
        }
        public MainForm()
        {
            _repository = new DataRepository();
            _logger = NLog.LogManager.GetCurrentClassLogger();

            CacheManager = new OverrideCacheManager();

            InitializeComponent();
            InitializeEventHandlers();

            InitializeCacheManagement();

            this.CenterToScreen();

            tabControl.Controls.Add(new TabPage() { BackColor = Color.Gainsboro, Text = "Contracts", Name = "tabContractOverview" });
            ContractOverview contractViewScreen = new ContractOverview();
            contractViewScreen._viewContractEvent += (sender, e) => RespondToContractViewRequest(sender, e);
            tabControl.Controls["tabContractOverview"].Controls.Add(contractViewScreen);
            tabControl.Controls["tabContractOverview"].Controls["ContractOverview"].Dock = DockStyle.Fill;
            tabControl.Controls.Add(new TabPage() { BackColor = Color.Gainsboro, Text = "Route Planner", Name = "tabRoutePlanner" });
            tabControl.Controls["tabRoutePlanner"].Controls.Add(new RoutePlanner());
            tabControl.Controls["tabRoutePlanner"].Controls["RoutePlanner"].Dock = DockStyle.Fill;
        }