예제 #1
0
		private void Document_DocumentChanged(object sender, DocumentEventArgs e) {
			if (mRefreshDelayTimer.Enabled == true || mWorker.IsBusy == true) {
				mUpdateAfterUpdate = true;
				return;
			}

			mText = Editor.Document.TextContent;
			mRefreshDelayTimer.Enabled = true;
			mRefreshDelayTimer.Start();
		}
예제 #2
0
		void DocumentChanged(object sender, DocumentEventArgs e)
		{
			if (e.Text == null) {
				Remove(e.Offset, e.Length);
			} else {
				if (e.Length < 0) {
					Insert(e.Offset, e.Text);
				} else {
					Replace(e.Offset, e.Length, e.Text);
				}
			}
		}
예제 #3
0
		void DocumentChanged(object sender, DocumentEventArgs e)
		{
			// reset markers table
			markersTable.Clear();
			document.UpdateSegmentListOnDocumentChange(textMarker, e);
		}