System.Windows.Forms.DynamicByteProvider.OnLengthChanged(System.EventArgs)

Here are the examples of the csharp api class System.Windows.Forms.DynamicByteProvider.OnLengthChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: MapleShark
Source File: DynamicByteProvider.cs
public void InsertBytes(long index, byte[] bs)
		{ 
			_bytes.InsertRange((int)index, bs); 

			OnLengthChanged(EventArgs.Empty);
			OnChanged(EventArgs.Empty);
		}

2. Example

Project: MapleShark
Source File: DynamicByteProvider.cs
public void DeleteBytes(long index, long length)
		{ 
			int internal_index = (int)Math.Max(0, index);
			int internal_length = (int)Math.Min((int)Length, length);
			_bytes.RemoveRange(internal_index, internal_length); 

			OnLengthChanged(EventArgs.Empty);
			OnChanged(EventArgs.Empty);
		}