1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00

Support for file dragging in workspace panel

This commit is contained in:
Brian Fiete 2021-01-03 11:51:53 -08:00
parent f928b93644
commit f6174aade2
8 changed files with 385 additions and 95 deletions

View file

@ -114,6 +114,28 @@ namespace System
}
}
public void AddFront(T ownDelegate) mut
{
Object data = Target;
if (data == null)
{
Target = ownDelegate;
return;
}
if (var list = data as List<T>)
{
list.Insert(0, ownDelegate);
}
else
{
var list = new List<T>();
list.Add(ownDelegate);
list.Add((T)data);
Target = list;
}
}
public void Remove(T compareDelegate, bool deleteDelegate = false) mut
{
Object data = Target;