/// <summary> /// Initializes a new instance of the <see cref="ConfigWindow" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="newConnectorPlugin">The new connector plugin.</param> /// <param name="wizardDialogSettings">The wizard dialog settings.</param> public ConfigWindow(ApplicationConfiguration configuration, ConnectorPlugin newConnectorPlugin, WindowSettings wizardDialogSettings) : this(configuration, wizardDialogSettings) { this.newConnectorPlugin = newConnectorPlugin; this.configurationViewModel.SingleConnectorMode = true; this.configurationViewModel.SingleNewConnectorMode = true; this.FocusConnectorsPage(); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigWindow" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="newConnectorPlugin">The new connector plugin.</param> public ConfigWindow(ApplicationConfiguration configuration, ConnectorPlugin newConnectorPlugin) : this(configuration) { this.newConnectorPlugin = newConnectorPlugin; this.configurationViewModel.SingleConnectorMode = true; this.configurationViewModel.SingleNewConnectorMode = true; this.FocusConnectorsPage(); }
/// <summary> /// Initializes a new instance of the <see cref="ConnectorsPage" /> class. /// Also, creates a new connector. /// </summary> /// <param name="connectors">The connectors.</param> /// <param name="ownerWindow">The owner <see cref="Window" />.</param> /// <param name="newConnectorPlugin">The new connector plugin.</param> /// <param name="config">The configuration.</param> /// <param name="wizardDialogSettings">The wizard dialog settings.</param> public ConnectorsPage(ConnectorViewModelCollection connectors, Window ownerWindow, ConnectorPlugin newConnectorPlugin, ApplicationConfiguration config, WindowSettings wizardDialogSettings) : this(connectors, ownerWindow, config, wizardDialogSettings) { var newConnector = new ConnectorViewModel(); // TODO move to connector view model/model this.currentConnector.SourceConnectorPlugin = newConnectorPlugin; this.currentConnector.Name = string.Empty; this.currentConnector.Load(null); this.Connectors.Add(this.currentConnector); this.CurrentConnector = newConnector; this.InitilizeConnectorNameTextEditBinding(); }
/// <summary> /// Initializes a new instance of the <see cref="Project"/> class. /// </summary> /// <param name="address">The address.</param> /// <param name="name">The name.</param> /// <param name="fullName">The full name.</param> /// <param name="description">The description.</param> /// <param name="projectPlugIn">The project plug in.</param> /// <param name="parent">The parent.</param> public Project(string address, string name, string fullName = null, string description = null, ConnectorPlugin projectPlugIn = null, Project parent = null) { this.Address = address; this.Name = name; this.FullName = fullName; this.Description = description; this.Plugin = projectPlugIn; this.Parent = parent; }