Esempio n. 1
0
        public LogWindow(bool simpleControl)
        {
            InitializeComponent();

            useSimpleControl = simpleControl;

            if (simpleControl)
            {
                simpleLogControl          = new SimpleLogWindowControl();
                simpleLogControl.Dock     = DockStyle.Fill;
                simpleLogControl.Name     = "simpleLogControl";
                simpleLogControl.TabIndex = 0;
                Controls.Add(simpleLogControl);
            }
            else
            {
                logControl          = new LogWindowControl();
                logControl.Dock     = DockStyle.Fill;
                logControl.Name     = "logControl";
                logControl.TabIndex = 0;
                Controls.Add(logControl);
            }

            base.Icon        = Properties.Resources.LogIcon;
            base.TabText     = base.Text = SR.Log;
            base.ToolTipText = SR.LogWindow;

            if (!simpleControl)
            {
                logControl.LinkClicked += (s, e) => HandleUrl(e.LinkText);
            }
        }
Esempio n. 2
0
        public LogWindow(bool simpleControl)
        {
            InitializeComponent();

            useSimpleControl = simpleControl;

            if (simpleControl)
            {
                simpleLogControl = new SimpleLogWindowControl();
                simpleLogControl.Dock = DockStyle.Fill;
                simpleLogControl.Name = "simpleLogControl";
                simpleLogControl.TabIndex = 0;
                Controls.Add(simpleLogControl);
            }
            else
            {
                logControl = new LogWindowControl();
                logControl.Dock = DockStyle.Fill;
                logControl.Name = "logControl";
                logControl.TabIndex = 0;
                Controls.Add(logControl);
            }

            base.Icon = Properties.Resources.LogIcon;
            base.TabText = base.Text = SR.Log;
            base.ToolTipText = SR.LogWindow;

            if (!simpleControl) logControl.LinkClicked += (s, e) => HandleUrl(e.LinkText);
        }