public SearchSourceSettingWindow(IList <SearchSource> sources, PluginInitContext context) { _viewModel = new SearchSourceViewModel { SearchSource = new SearchSource() }; Initilize(sources, context, Action.Add); }
public SearchSourceSettingWindow(IList <SearchSource> sources, PluginInitContext context, SearchSource old) { _oldSearchSource = old; _viewModel = new SearchSourceViewModel { SearchSource = old.DeepCopy() }; Initilize(sources, context, Action.Edit); }