Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
         }
     }
 }
Beispiel #3
0
 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);
         }
     }
 }
Beispiel #4
0
 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);
         }
     }
 }
Beispiel #5
0
 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);
         }
     }
 }