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:
parent
f928b93644
commit
f6174aade2
8 changed files with 385 additions and 95 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue