private void SetFirstArgumentPanelFocus() { this.Wizard.Focus(); this.Focus(); if (this.Configuration != null && this.Configuration.Fields.Length >= 1) { IValueInfoService metaDataService = (IValueInfoService)GetService(typeof(IValueInfoService)); ValueInfo argument = metaDataService.GetInfo(this.Configuration.Fields[0].ValueName); if (argument != null) { ArgumentPanel firstArgumentPanel = (ArgumentPanel)Arguments[argument]; firstArgumentPanel.Focus(); } } }
protected override void OnHelpRequested(HelpEventArgs hevent) { base.OnHelpRequested(hevent); Point helpAt = this.PointToClient(hevent.MousePos); Control acControl = this.GetChildAtPoint(helpAt); if (acControl != null && acControl is ArgumentPanel) { ArgumentPanel panel = acControl as ArgumentPanel; panel.Focus(); if (panel.FieldConfig != null && panel.FieldConfig.Tooltip != null && !panel.FieldConfig.Tooltip.Equals(String.Empty)) { ToolTip toolTip = panel.ToolTip; toolTip.Show(panel.FieldConfig.Tooltip, this, helpAt, toolTip.AutoPopDelay); } } }