예제 #1
0
파일: MainForm.cs 프로젝트: goofwear/wudt
        /// <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);
        }
예제 #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);
        }