50 lines
1.8 KiB
C#
50 lines
1.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Rei.Fs.FsSpecificContextMenuItem
|
|
// Assembly: Rei.Fs, Version=1.13.2.8796, Culture=neutral, PublicKeyToken=null
|
|
// MVID: D8B08A8B-697C-4439-9CFF-1BE4EE46F7B0
|
|
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Fs.dll
|
|
|
|
using System.Drawing;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Rei.Fs
|
|
{
|
|
public class FsSpecificContextMenuItem
|
|
{
|
|
public string Title;
|
|
public Image Image;
|
|
public System.EventHandler<ResourceInfoEventArgs> EventHandler;
|
|
public bool UseWaitCursor;
|
|
public object Tag;
|
|
|
|
public FsSpecificContextMenuItem(string title, bool usewaitcursor, System.EventHandler<ResourceInfoEventArgs> eventhandler)
|
|
: this(title, (Image) null, usewaitcursor, eventhandler, (object) null)
|
|
{
|
|
}
|
|
|
|
public FsSpecificContextMenuItem(string title, bool usewaitcursor, System.EventHandler<ResourceInfoEventArgs> eventhandler, object tag)
|
|
: this(title, (Image) null, usewaitcursor, eventhandler, RuntimeHelpers.GetObjectValue(tag))
|
|
{
|
|
}
|
|
|
|
public FsSpecificContextMenuItem(string title, Image image, bool usewaitcursor, System.EventHandler<ResourceInfoEventArgs> eventhandler)
|
|
: this(title, image, usewaitcursor, eventhandler, (object) null)
|
|
{
|
|
}
|
|
|
|
public FsSpecificContextMenuItem(string title, Image image, bool usewaitcursor, System.EventHandler<ResourceInfoEventArgs> eventhandler, object tag)
|
|
{
|
|
this.Title = title;
|
|
this.Image = image;
|
|
this.UseWaitCursor = usewaitcursor;
|
|
this.EventHandler = eventhandler;
|
|
this.Tag = RuntimeHelpers.GetObjectValue(tag);
|
|
}
|
|
|
|
public void Invoke(object sender, FsBase pfs, ResourceInfo[] ris)
|
|
{
|
|
this.EventHandler(RuntimeHelpers.GetObjectValue(sender), new ResourceInfoEventArgs(pfs, ris, RuntimeHelpers.GetObjectValue(this.Tag)));
|
|
}
|
|
}
|
|
}
|