public MainWindowAdapter( Project project, IFieldPathFactory pathFactory, PresetView preset, StandardView standard, AdvancedView advanced, RetrieveFieldsView fields) : base(project) { _appWidth = Properties.Settings.Default.AppWidth; _appHeight = Properties.Settings.Default.AppHeight; _appWindowState = Properties.Settings.Default.AppWindowState; _viewColumnSize = new GridLength(Properties.Settings.Default.ViewColumnSize); Preset = preset; Standard = standard; Advanced = advanced; RetrieveFields = fields; _views.Add("Preset", preset.Adapter); _views.Add("Standard", standard.Adapter); _views.Add("Advanced", advanced.Adapter); Preset.Adapter.Search += Adapter_Search; Standard.Adapter.Search += Adapter_Search; Advanced.Adapter.Search += Adapter_Search; ProjectAdapter = new ProjectAdapter(project); ProjectAdapter.Project.CurrentConnectionChanged += delegate { RefreshPaths(); OnPropertyChanged("ApplicationTitle"); }; PathFactory = pathFactory; CurrentView = Preset.Adapter; SelectedSubjectChanged += delegate { RefreshPaths(); }; RefreshPaths(); }
public ConnectionAdapter(ProjectAdapter p, ProjectConnection c) { _project = p; Connection = c; }
public ConnectionAdapter(ProjectAdapter p, Connection c) { _project = p; Connection = c; }