Пример #1
0
        public ShellBase(Project project, ListCacher cacher, IList<IInitialiser> initialisers)
        {
            Project = project;
            Cacher = cacher;
            OnConnectionChanged();

            foreach (var i in initialisers)
                i.Initialise();
        }
Пример #2
0
        public ShellBase(Project project, ListCacher cacher, IList <IInitialiser> initialisers)
        {
            Project = project;
            Cacher  = cacher;
            OnConnectionChanged();

            foreach (var i in initialisers)
            {
                i.Initialise();
            }
        }
Пример #3
0
        public Shell(Project project, IControlFactory<Control> controlFactory, ListCacher cacher, IList<IInitialiser> initialisers)
            : base(project, cacher, initialisers)
        {
            // initialise last saved connection with this project
            var connectionLookup = Settings.Default.SavedConnections;
            if (connectionLookup.ContainsKey(Project.Id))
                Project.CurrentConnection = Project.Connections.Find(c => c.Identifier == connectionLookup[Project.Id]);

            ControlFactory = controlFactory;
            ControlFactory.ListRequested += ControlFactory_ListRequested;
        }
Пример #4
0
        public ShellBase(Project project, DbServiceFactory serviceFactory, ListCacher cacher, IList <IInitialiser> initialisers)
        {
            Project        = project;
            ServiceFactory = serviceFactory;
            Cacher         = cacher;
            OnConnectionChanged();

            foreach (var i in initialisers)
            {
                i.Initialise();
            }
        }