private UiEncodingMainCharacterControl ProvideMainControl(int index)
        {
            if (!CheckAccess())
            {
                return(Dispatcher.Invoke(() => ProvideMainControl(index)));
            }

            UiEncodingMainCharacterControl control = new UiEncodingMainCharacterControl();
            {
                control.Visibility = Visibility.Collapsed;
                control.DrawEvent  = _drawEvent;
                _mainPanel.AddUiElement(control);
                return(control);
            }
        }
        private UiEncodingMainCharacterControl ProvideMainControl(int index)
        {
            if (!CheckAccess())
                return Dispatcher.Invoke(() => ProvideMainControl(index));

            UiEncodingMainCharacterControl control = new UiEncodingMainCharacterControl();
            {
                control.Visibility = Visibility.Collapsed;
                control.DrawEvent = _drawEvent;
                _mainPanel.AddUiElement(control);
                return control;
            }
        }