public void OnCheckBoxClick(object sender, EventArgs e) { if (CheckBoxClick != null) { Control s = sender as Control; GuiControl gc = guiControls[s.Name] as GuiControl; if (gc.HasEventHandlers("onclick")) { UpdateData(); CheckBoxClick(sender, e); UpdateForm(sender as Control); } } }
public void OnListBoxChange(object sender, EventArgs e) { if (ListBoxChange != null) { Control s = sender as Control; GuiControl gc = guiControls[s.Name] as GuiControl; if (gc.HasEventHandlers("onchange") || gc.AutoBindingChildControls.Count > 0) { UpdateData(); ListBoxChange(sender, e); UpdateForm(sender as Control); } } }
public void ControlLostFocus(object sender, EventArgs e) { if (ControlOnBlur != null) { Control s = sender as Control; GuiControl gc = guiControls[s.Name] as GuiControl; if (gc.HasEventHandlers("onblur")) { UpdateData(); ControlOnBlur(sender, e); UpdateForm(sender as Control); } } }
public void OnTextBoxKeyPress(object sender, KeyPressEventArgs e) { if (TextBoxKeyPress != null) { Control s = sender as Control; GuiControl gc = guiControls[s.Name] as GuiControl; if (gc.HasEventHandlers("onkeypress")) { UpdateData(); TextBoxKeyPress(sender, e); UpdateForm(sender as Control); } } }
public void ControlEnter(object sender, EventArgs e) { if (ControlOnFocus != null) { Control s = sender as Control; GuiControl gc = guiControls[s.Name] as GuiControl; if (gc.HasEventHandlers("onfocus")) { UpdateData(); ControlOnFocus(sender, e); UpdateForm(sender as Control); } } }