public void Process([CanBeNull] ProgressIndicator progressIndicator, int maxSuggestions, int occurrances, int minPercentage)
{
this.ProgressIndicator = progressIndicator;
this.MaxSuggestions = maxSuggestions;
this.Occurances = occurrances;
this.MinPercentage = minPercentage;
if (this.MaxSuggestions < 1)
{
this.MaxSuggestions = 1;
}
var indicator = this.ProgressIndicator;
if (indicator != null)
{
indicator.Task = "Loading data files...";
indicator.Text = string.Empty;
}
this.LoadDataFiles();
if (indicator != null)
{
indicator.Task = "Building suggestions...";
indicator.Text = string.Format("0 of {0}", this.templates.Count);
}
this.Build();
}