System.Windows.Forms.DataMap.GetLastBlock()

Here are the examples of the csharp api class System.Windows.Forms.DataMap.GetLastBlock() 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: DataMap.cs
public void RemoveLast()
        {
            if (_firstBlock == null)
            {
                throw new InvalidOperationException("The collection is empty.");
            }
            RemoveInternal(GetLastBlock());
		}

2. Example

Project: MapleShark
Source File: DataMap.cs
public void AddLast(DataBlock block)
        {
            if (_firstBlock == null)
            {
                AddBlockToEmptyMap(block);
            }
            else
            {
                AddAfterInternal(GetLastBlock(), block);
            }
        }