Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Objects.UI.Glue.BuiGlue Class Reference

Public Member Functions

 BuiGlue (IBuiControl control, TimeSpan updateFrequency)
 
 BuiGlue (IBuiControl control)
 

Static Public Member Functions

static BuiGlue BindModel< T > (IBuiControl control, T model)
 

Properties

ITaskScheduler TaskScheduler [get]
 

Events

Action< string > PropertyUpdate
 

Constructor & Destructor Documentation

pluginbase.Objects.UI.Glue.BuiGlue.BuiGlue ( IBuiControl  control,
TimeSpan  updateFrequency 
)
33  {
34  _control = new WeakReferenceExt<IBuiControl>(control);
35  _hasBindInvoke = _control.Target.HasInvoke(INVOKE_UPDATE_BIND);
36  _hasQueryInvoke = _control.Target.HasInvoke(INVOKE_QUERY_BIND);
37 
38  if (_control.Target.HasInvoke(INVOKE_INIT))
39  _control.Target.Invoke(INVOKE_INIT);
40 
41  this.InjectDependencies();
42  if (this.TaskScheduler != null)
43  {
44  this.TaskScheduler.ScheduleRecurringTask(this.UpdateInternal, updateFrequency);
45  }
46  }
ITaskScheduler TaskScheduler
Definition: BuiGlue.cs:25
pluginbase.Objects.UI.Glue.BuiGlue.BuiGlue ( IBuiControl  control)
49  :this(control, TimeSpan.FromSeconds(0.5))
50  {}

Member Function Documentation

static BuiGlue pluginbase.Objects.UI.Glue.BuiGlue.BindModel< T > ( IBuiControl  control,
model 
)
static
Type Constraints
T :class 
53  : class
54  {
55  var glue = new BuiGlue(control);
56  glue.BindModel(model);
57  return glue;
58  }
BuiGlue(IBuiControl control, TimeSpan updateFrequency)
Definition: BuiGlue.cs:32

Property Documentation

ITaskScheduler pluginbase.Objects.UI.Glue.BuiGlue.TaskScheduler
getprotected

Attribute: Dependency(Optional = true)

Event Documentation

Action<string> pluginbase.Objects.UI.Glue.BuiGlue.PropertyUpdate

The documentation for this class was generated from the following file: