public void CreateDb(DbSettingsDto dbSettings)
        {
            IDbManager dataBaseService = _dbManagerFactory.GetDbManagerRest(dbSettings.Name,
                                                                            dbSettings.FileSize, dbSettings.DefaultSource);

            var dbPanel = new DataBasePanelControl(dataBaseService, _serviceProvider);

            SharedControls.FlowLayoutPanelLeftMenu.Controls.Add(dbPanel);
        }
        public void OpenDb(OpenFileDialog fileDialog = null)
        {
            var dbNames = _dbManagerFactory.GetRemoteDbsList();

            var form = new SelectDbForm(dbNames);

            form.ShowDialog();

            if (form.IsSet)
            {
                IDbManager dataBaseService = _dbManagerFactory.GetDbManagerRest(form.DbName);

                var dbPanel = new DataBasePanelControl(dataBaseService, _serviceProvider);
                SharedControls.FlowLayoutPanelLeftMenu.Controls.Add(dbPanel);
            }
        }
        public void OpenDb(OpenFileDialog fileDialog)
        {
            try
            {
                string path = "";
                var    form = new InputForm(Constants.DbPanelControl.EnterPathForDb);
                form.ShowDialog();
                if (form.IsSet)
                {
                    path = form.Value;
                }

                IDbManager dataBaseService = _dbManagerFactory.GetDbManagerLocal(path);

                var dbPanel = new DataBasePanelControl(dataBaseService, _serviceProvider);
                SharedControls.FlowLayoutPanelLeftMenu.Controls.Add(dbPanel);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }