Is there any class which provide basic selection mechanism? for example:
Imagine I have WAVE file and simple WAV-Editor written in C#. Now I can display this wave file in graphical representation as wave form. In main menu I can click Edit -> Select All, which will select all my samples.
MySelector ms = new MySelector (0, numOfSamples-1);
ms.SelectAll;
Ofcourse Ishould can select range block:
ms.Select (from, to);
Or even invert:
ms.InvertSelection ();
Multi select:
ms.AppendSelection (from ,to);
Get information about selected samples:
for (int i=0; i< ms.Size; i++)
if (ms.SelectedAt (i)) DoSomeLogic ();
So, is that class already written or should I do it tommorow :O ?
Thx.