예제 #1
0
 public SearchSourceSettingWindow(IList <SearchSource> sources, PluginInitContext context)
 {
     _viewModel = new SearchSourceViewModel {
         SearchSource = new SearchSource()
     };
     Initilize(sources, context, Action.Add);
 }
예제 #2
0
 public SearchSourceSettingWindow(IList <SearchSource> sources, PluginInitContext context, SearchSource old)
 {
     _oldSearchSource = old;
     _viewModel       = new SearchSourceViewModel {
         SearchSource = old.DeepCopy()
     };
     Initilize(sources, context, Action.Edit);
 }
예제 #3
0
 public SearchSourceSettingWindow(IList<SearchSource> sources, PluginInitContext context)
 {
     _viewModel = new SearchSourceViewModel {SearchSource = new SearchSource()};
     Initilize(sources, context, Action.Add);
 }
예제 #4
0
 public SearchSourceSettingWindow(IList<SearchSource> sources, PluginInitContext context, SearchSource old)
 {
     _oldSearchSource = old;
     _viewModel = new SearchSourceViewModel {SearchSource = old.DeepCopy()};
     Initilize(sources, context, Action.Edit);
 }