Esempio n. 1
0
        private void buttonClicked(object sender, System.EventArgs e)
        {
            try
            {
                if (sender is Button)
                {
                    Button    b  = sender as Button;
                    GuiButton gb = guiController[b.Name] as GuiButton;

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