コード例 #1
0
        // CONSTRUCTOR
        public LoggerWindowed(IFormParent parent)
        {
            _window = new WindowLogger();
            _window.BaseContainer = parent;
            //_window.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            _window.Show();

            OnUpdateFont += new EventHandlerUpdateFont(PropagateFont);
            OnUpdateForeColor += new EventHandlerUpdateColor(PropagateForeColor);
            OnUpdateBackColor += new EventHandlerUpdateColor(PropagateBackColor);
            DoOnUpdateFont(LoggerFont);
            DoOnUpdateForeColor(ForeColor);
            DoOnUpdateBackColor(BackColor);
        }
コード例 #2
0
        // CONSTRUCTOR
        public LoggerWindowed(IFormMainWindow parent)
            : base()
        {
            _window = new WindowLogger(this);
            _window.BaseContainer = parent;
            //_window.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            _window.Show();

            LoggerWindowedConfiguration configuration = ((LoggerWindowedConfiguration)this.Configuration);
            ConfigurationItemTextStyle configurationitem = ((ConfigurationItemTextStyle)configuration.findProperty(configuration.idTextStyle));
            configurationitem.OnChange += new EventHandlerConfigurationItem(TextStyleChanged);
            //OnUpdateFont += new EventHandlerUpdateFont(PropagateFont);
            //DoOnUpdateFont(LoggerFont);
        }