public ResourceClipboardForm() { Core.ResourceAP.RunJob(new MethodInvoker(Registerer)); InitializeComponent(); InitializeList(); _contents = Core.ResourceStore.EmptyResourceList; _theInstance = this; }
public void Execute(IActionContext context) { if (!ResourceClipboardForm.IsVisible()) { ResourceClipboardForm.ShowResourceClipboard(null); } else { ResourceClipboardForm.HideResourceClipboard(); } }
public static void ShowResourceClipboard(IResourceList contents) { if (_theInstance == null) { _theInstance = new ResourceClipboardForm(); _theInstance.Owner = (Form)Core.MainWindow; _theInstance.RestoreSettings(); } if (contents != null) { // this ensures we have a correct live list with no deleted resources (#4329) _theInstance.ClipboardContents = Core.ResourceStore.EmptyResourceList; _theInstance.AddResourceList(contents); _theInstance._lvResources.SelectAll(); } _theInstance.Visible = true; }
public void Execute(IActionContext context) { ResourceClipboardForm.RemoveSelectedResources(); }
public void Update(IActionContext context, ref ActionPresentation presentation) { presentation.Checked = ResourceClipboardForm.IsVisible(); }
public DnDHandler(ResourceClipboardForm parent) { _form = parent; }
public override void Execute(IActionContext context) { ResourceClipboardForm.ShowResourceClipboard(context.SelectedResources); }