Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the MainForm class.
        /// </summary>
        /// <param name="logging">The logging service to use.</param>
        public MainForm(ILogService logging)
        {
            this.InitializeComponent();

            this.presenter = new ToolPresenter(this, logging);
            this.logging = logging;

            this.Paint += this.MainForm_Paint;

            var tip = new ToolTip
            {
                AutoPopDelay = 5000,
                InitialDelay = 1000,
                ReshowDelay = 500,
                ShowAlways = true
            };

            this.InitializeToolTips(tip, this.Controls);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the MainForm class.
        /// </summary>
        /// <param name="logging">The logging service to use.</param>
        public MainForm(ILogService logging)
        {
            this.InitializeComponent();

            this.presenter = new ToolPresenter(this, logging);
            this.logging   = logging;

            this.Paint += this.MainForm_Paint;

            var tip = new ToolTip
            {
                AutoPopDelay = 5000,
                InitialDelay = 1000,
                ReshowDelay  = 500,
                ShowAlways   = true
            };

            this.InitializeToolTips(tip, this.Controls);
        }