예제 #1
0
파일: DynamicForm.cs 프로젝트: zhh007/MyGen
        private void textBoxKeyPress(object sender, System.EventArgs e)
        {
            try
            {
                if (sender is TextBox)
                {
                    TextBox    tb  = sender as TextBox;
                    GuiTextBox gtb = guiController[tb.Name] as GuiTextBox;

                    foreach (string functionName in gtb.GetEventHandlers("onkeypress"))
                    {
                        this.executioner.ExecuteFunction(functionName, gtb);
                    }
                }
            }
            catch (Exception x)
            {
                //ZeusDisplayError formError = new ZeusDisplayError(x);
                //formError.ShowDialog(this);
                if (logger != null)
                {
                    logger.LogException(x);
                }
            }
        }