Пример #1
0
 protected virtual void OnDocumentMoved(DocumentMovedEventArgs e)
 {
     if (DocumentMoved != null)
     {
         DocumentMoved(this, e);
     }
 }
Пример #2
0
		private void docManager_DocumentMoved(object sender, DocumentMovedEventArgs e)
		{
			Tab tab = tabs[e.OldPostion];

			if (e.NewPosition > e.OldPostion)
			{
				for (int i = e.OldPostion; i < e.NewPosition; i++)
					tabs[i] = tabs[i + 1];
			}
			else // e.NewPosition < e.OldPostion
			{
				for (int i = e.OldPostion; i > e.NewPosition; i--)
					tabs[i] = tabs[i - 1];
			}
			tabs[e.NewPosition] = tab;
			Invalidate();
		}
Пример #3
0
 private void OnDocumentMoved(DocumentMovedEventArgs e)
 {
     DocumentMoved?.Invoke(this, e);
 }
Пример #4
0
		protected virtual void OnDocumentMoved(DocumentMovedEventArgs e)
		{
			if (DocumentMoved != null)
				DocumentMoved(this, e);
		}
 protected virtual void OnDocumentMoved(DocumentMovedEventArgs e)
 {
     DocumentMoved?.Invoke(this, e);
 }