26 lines
751 B
C#
26 lines
751 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using NHibernate;
|
|
using Results.Entities;
|
|
|
|
namespace ResultsBrowser.Filters
|
|
{
|
|
public interface IFilter
|
|
{
|
|
string GetThisFilterID(); /// Returns string identifying filter type
|
|
|
|
void Save(StringBuilder sb); /// Saves filter parameters into a string
|
|
|
|
void Data2UI();
|
|
|
|
void UI2Data(); /// Throws an exception with appropriate message if UI data are invalid
|
|
|
|
UserControl GetFilterUI(); /// Returns filter's UI control to be added to the FlowLayoutPanel
|
|
|
|
IList<WaterMeter> ExecuteQuery(ISession[] sessions, IList<WaterMeter> waterMeters);
|
|
}
|
|
}
|