예제 #1
0
        protected override void OnContentRendered(EventArgs e)
        {
            base.OnContentRendered(e);

            //Редактор

            this._editor = (Editor)this.Owner;
            FontInfo.ApplyFont(this.tbExample, this.BoardFontInfo);
            this.tbExample.Background = this.BoardBackground;
            this.slWidth.Value = this._editor.inkBoard.Width;
            this.slHeight.Value = this._editor.inkBoard.Height;
            this.colorPicker.SelectedColor = ((SolidColorBrush)this.BoardBackground).Color;

            //Соединение

            this.cbIp.SelectedItem = this._editor.IP;
            this.tbPort.Text = this._editor.Port.ToString();

            this.spAddress.IsEnabled = (bool)!this._editor.btPlay.IsChecked;
            this.tbHint.Text = this.spAddress.IsEnabled == false ? "*Для изменения настроек отключите трасляцию" : "";
        }
예제 #2
0
        private int _currentBoard;                                  //Индекс активной доски

        public BoardHistoryHelper(Editor editor)
        {
            this._editor = editor;
            this._currentBoard = 0;
            this._boards.Add(new BoardData());
        }
예제 #3
0
 public RegistryHelper(Editor editor)
 {
     this._editor = editor;
 }
예제 #4
0
 public DrawingHelper(Editor editor)
 {
     this._editor = editor;
 }