mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Remove unused code
- ListBoxItem_OnDrop Event Handler - ItemDropEvent Handler - UpdateItemNumber method
This commit is contained in:
@@ -32,25 +32,9 @@ namespace Wox
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
//pnlResult.ItemDropEvent += pnlResult_ItemDropEvent;
|
||||
Closing += MainWindow_Closing;
|
||||
}
|
||||
|
||||
//void pnlResult_ItemDropEvent(Result result, IDataObject dropDataObject, DragEventArgs args)
|
||||
//{
|
||||
// PluginPair pluginPair = PluginManager.AllPlugins.FirstOrDefault(o => o.Metadata.ID == result.PluginID);
|
||||
// if (ResultItemDropEvent != null && pluginPair != null)
|
||||
// {
|
||||
// foreach (var delegateHandler in ResultItemDropEvent.GetInvocationList())
|
||||
// {
|
||||
// if (delegateHandler.Target == pluginPair.Plugin)
|
||||
// {
|
||||
// delegateHandler.DynamicInvoke(result, dropDataObject, args);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
void MainWindow_Closing(object sender, CancelEventArgs e)
|
||||
{
|
||||
UserSettingStorage.Instance.WindowLeft = Left;
|
||||
|
||||
Reference in New Issue
Block a user