CamTimer.MainForm.BindHelp C# (CSharp) Method

BindHelp() private method

private BindHelp ( Control ctl, string title, string text ) : void
ctl System.Windows.Forms.Control
title string
text string
return void
        private void BindHelp(Control ctl, string title, string text)
        {
            ctl.GotFocus -= (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateIn(title, text);
            };
            ctl.LostFocus -= (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateOut();
            };
            ctl.MouseEnter -= (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateIn(title, text);
            };
            ctl.MouseLeave -= (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateOut();
            };

            ctl.GotFocus += (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateIn(title, text);
            };
            ctl.LostFocus += (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateOut();
            };
            ctl.MouseEnter += (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateIn(title, text);
            };
            ctl.MouseLeave += (EventHandler)delegate(object sender, EventArgs e) {
                helpPanel.AnimateOut();
            };
        }