public ShellBase(Project project, ListCacher cacher, IList<IInitialiser> initialisers) { Project = project; Cacher = cacher; OnConnectionChanged(); foreach (var i in initialisers) i.Initialise(); }
public ShellBase(Project project, ListCacher cacher, IList <IInitialiser> initialisers) { Project = project; Cacher = cacher; OnConnectionChanged(); foreach (var i in initialisers) { i.Initialise(); } }
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; }
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(); } }