public PlaceFinderDockableWindow(object hook) { InitializeComponent(); var factory = new Factory(); factory.PlaceFinderDockableWindow = this; PlaceFinderController = new PlaceFinderController(factory); configurationsForm = new ConfigurationsForm(PlaceFinderController); this.Hook = hook; }
public ConfigurationsForm(IPlaceFinderController placeFinderController, string[] selected) { _placeFinderController = placeFinderController; InitializeComponent(); for (int i = 0; i < selected.Length; ++i) { SearchRequestResourcesCheckedListBox.SetItemCheckState(SearchRequestResourcesCheckedListBox.Items.IndexOf(selected[i]), CheckState.Checked); } // Force update of the place finder controller similar to closing the selection form ConfigurationsForm_FormClosing(null, null); }
public PlaceFinderDockableWindow(object hook) { InitializeComponent(); var factory = new Factory(); factory.PlaceFinderDockableWindow = this; PlaceFinderController = new PlaceFinderController(factory); // This string array defines the default search areas. The strings must match the elements in the // Configurations form exactly string[] defaultConfig = new string[] { "Stednavne v3" }; // Create the configurations form configurationsForm = new ConfigurationsForm(PlaceFinderController, defaultConfig); this.Hook = hook; }
public ConfigurationsForm(IPlaceFinderController placeFinderController) { _placeFinderController = placeFinderController; InitializeComponent(); SearchRequestResourcesCheckedListBox.SetItemCheckState(SearchRequestResourcesCheckedListBox.Items.IndexOf("Stednavne"), CheckState.Checked); }