同步操作将从 wxd_tony1984/DevelopAssistant 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace ICSharpCode.WinFormsUI.Controls{public partial class TextBoxControl : TextBoxBase{private TextBoxBase textBox = null;private string _text = string.Empty;private int _lastDocumentType = -1;public override string Text{get{return textBox == null ? _text : textBox.Text;}set{_text = value;if (textBox != null)textBox.Text = _text;}}public override DocumentType DocumentType{get{return base.DocumentType;}set{if (this.textBox != null&& this.textBox.Text != "undefined"){this._text = this.textBox.Text;}base.DocumentType = value;InitializeControl();}}public TextBoxControl(){InitializeComponent();}protected void InitializeControl(){int _newDocumentType = 0;switch (documentType){case WinFormsUI.Controls.DocumentType.None:case WinFormsUI.Controls.DocumentType.Text:case WinFormsUI.Controls.DocumentType.Word:_newDocumentType = 1;break;default:_newDocumentType = 0;break;}if (_newDocumentType != _lastDocumentType){this.BackColor = Color.White;this.Controls.Clear();switch (documentType){case WinFormsUI.Controls.DocumentType.None:case WinFormsUI.Controls.DocumentType.Text:case WinFormsUI.Controls.DocumentType.Word:textBox = new DocoFormatControl();break;default:textBox = new CodeFormatControl();break;}textBox.Dock = DockStyle.Fill;this.Controls.Add(textBox);}textBox.DocumentType = documentType;textBox.Text = _text;_lastDocumentType = _newDocumentType;}public override void ReleaseDispose(){textBox.ReleaseDispose();}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。