public override void _initControl() { if (null == mTextEditorControl || mTextEditorControl.IsDisposed) { mTextEditorControl = new TextEditEx(); if (string.Compare(mDockStyle, @"Top") == 0) { mTextEditorControl.Dock = DockStyle.Top; } else if (string.Compare(mDockStyle, @"Bottom") == 0) { mTextEditorControl.Dock = DockStyle.Bottom; } else if (string.Compare(mDockStyle, @"Fill") == 0) { mTextEditorControl.Dock = DockStyle.Fill; } else if (string.Compare(mDockStyle, @"Left") == 0) { mTextEditorControl.Dock = DockStyle.Left; } else if (string.Compare(mDockStyle, @"Right") == 0) { mTextEditorControl.Dock = DockStyle.Right; } else { mTextEditorControl.Dock = DockStyle.None; } if (null != mPath) { mTextEditorControl._runLoad(mPath); } } }
public TextEdit() { mTextEditorControl = null; mDockStyle = @"None"; mPath = null; }