public UI_OutputControl()
        {
            InitializeComponent();
            Data = FindResource("datahandler") as UI_OutputControlDataHandler;

            this.NextIsLineBeginning = true;

            GlobalEvents.OnWrite += Write;
            GlobalEvents.OnClear += Clear;
        }
        public UI_OutputControl()
        {
            InitializeComponent();
            Data = FindResource("datahandler") as UI_OutputControlDataHandler;

            this.NextIsLineBeginning = true;

            GlobalEvents.OnWrite += Write;
            GlobalEvents.OnClear += Clear;
        }