12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Drawing;
- namespace FastReport.FastQueryBuilder
- {
- internal class AddTableEventArgs : EventArgs
- {
- public AddTableEventArgs(Table table, Point position, string alias = "")
- {
- if (table == null)
- new Exception("The table should not be nill");
- this.table = table;
- this.position = position;
- this.alias = alias;
- }
- public Table table;
- public Point position;
- public string alias;
- public ITableView tableView;
- }
- internal delegate void AddTableEventHandler(object sender, AddTableEventArgs ate);
- internal class AddLinkEventArgs : EventArgs
- {
- public AddLinkEventArgs(Field from, Field to)
- {
- this.fieldFrom = from;
- this.fieldTo = to;
- useDefaults = true;
- }
- public AddLinkEventArgs(Field from, Field to, QueryEnums.JoinTypes joinType, QueryEnums.WhereTypes whereType)
- {
- this.fieldFrom = from;
- this.fieldTo = to;
- this.joinType = joinType;
- this.whereType = whereType;
- }
- public Field fieldFrom;
- public Field fieldTo;
- public QueryEnums.JoinTypes joinType;
- public QueryEnums.WhereTypes whereType;
- public bool useDefaults;
- }
- internal delegate void AddLinkEventHandler(object sender, AddLinkEventArgs ate);
- internal class CheckFieldEventArgs : EventArgs
- {
- public CheckFieldEventArgs(Field field)
- {
- if (field == null)
- new Exception("The field should not be nill");
- this.field = field;
- }
- public Field field;
- public bool value;
- }
- internal delegate void CheckFieldEventHandler(object sender, CheckFieldEventArgs ate);
- }
|