예제 #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
파일: Shell.cs 프로젝트: AdamCollings/dbqf
        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();
            }
        }