Пример #1
0
        private bool _isBankCacheLoaded; //Used to help set the progress bar to a proper length

        public MainForm()
        {
            InitializeComponent();
            splitContainer1.Visible = false;
            _bankInfoLoader         = new BankInfoLoader();
            _mapInfoCache           = new MapInfoCache(_bankInfoLoader);

            //Create a progress bar and show it on the form
            _progressBarControl = new ProgressBarControl();
            this.Controls.Add(_progressBarControl);
            _progressBarControl.Dock = DockStyle.Fill;
            _progressBarControl.BringToFront();
            _progressBarControl.Visible = true;
        }