public FilterSettings(string FeatureName, string DatabaseName, string Granularity) { this.FeatureName = FeatureName; this.Database = DatabaseName; this.Granularity = Granularity; this.ObjectsToFilter = new ObjectsFilterList(); }
public void GetFilterSettingsFromFile(string InputFilePath) { using (StreamReader file = File.OpenText(InputFilePath)) { JsonSerializer serializer = new JsonSerializer(); FilterSettings fs = (FilterSettings)serializer.Deserialize(file, typeof(FilterSettings)); this.Granularity = fs.Granularity; this.ObjectsToFilter = fs.ObjectsToFilter; } }
public FilterSettings() { this.Granularity = "None"; this.ObjectsToFilter = new ObjectsFilterList(); }