Example #1
0
        private void comboBoxChanged(object sender, System.EventArgs e)
        {
            try
            {
                if (sender is ComboBox)
                {
                    ComboBox    cb  = sender as ComboBox;
                    GuiComboBox gcb = guiController[cb.Name] as GuiComboBox;

                    UpdateAutoBinding(gcb);

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