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 ? "*Для изменения настроек отключите трасляцию" : ""; }
private int _currentBoard; //Индекс активной доски public BoardHistoryHelper(Editor editor) { this._editor = editor; this._currentBoard = 0; this._boards.Add(new BoardData()); }
public RegistryHelper(Editor editor) { this._editor = editor; }
public DrawingHelper(Editor editor) { this._editor = editor; }