Пример #1
0
 private void MainText_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode.ToString() == "A")
     {
         MainText.SelectAll();
     }
 }
Пример #2
0
        public AlertForm(string mainText, int size = 10)
        {
            InitializeComponent();

            buttonOk.BringToFront();

            MainText.SelectionFont = new Font("Tahoma", size, FontStyle.Regular);
            MainText.AppendText(mainText + "\r\n");
            MainText.ScrollToCaret();
            MainText.SelectAll();
            MainText.SelectionAlignment = HorizontalAlignment.Center;
        }
Пример #3
0
        public EventDisplayForm(ObjectEvent objectEvent)
        {
            InitializeComponent();

            _actionSelectionFlag = false;

            TopMost       = true;
            ShowInTaskbar = false;

            _objectEvent = objectEvent;

            MainText.SelectionFont = new Font("Tahoma", _objectEvent._sizeFont, FontStyle.Regular);
            MainText.AppendText(_objectEvent._eventText + "\r\n");
            MainText.ScrollToCaret();
            MainText.SelectAll();
            MainText.SelectionAlignment = HorizontalAlignment.Center;

            //MainText.Text = _objectEvent._eventText;

            for (int index = 0; index < _objectEvent._outcomeOptions.Count; index++)
            {
                AddEvents(_objectEvent._outcomeOptions[index], index);
            }
        }