public void Execute(IActionContext context) { if (!ResourceClipboardForm.IsVisible()) { ResourceClipboardForm.ShowResourceClipboard(null); } else { ResourceClipboardForm.HideResourceClipboard(); } }
public void Update(IActionContext context, ref ActionPresentation presentation) { presentation.Checked = ResourceClipboardForm.IsVisible(); }