public void SetData(CodeViewData data) { this.Data = data; IsReadOnly = false; Text = data.Code; IsReadOnly = true; }
public void SetPlainText(string text) { Data = null; IsReadOnly = false; Text = text; IsReadOnly = true; }