示例#1
0
        public ResourceClipboardForm()
        {
            Core.ResourceAP.RunJob(new MethodInvoker(Registerer));

            InitializeComponent();
            InitializeList();

            _contents    = Core.ResourceStore.EmptyResourceList;
            _theInstance = this;
        }
示例#2
0
 public void Execute(IActionContext context)
 {
     if (!ResourceClipboardForm.IsVisible())
     {
         ResourceClipboardForm.ShowResourceClipboard(null);
     }
     else
     {
         ResourceClipboardForm.HideResourceClipboard();
     }
 }
示例#3
0
 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;
 }
示例#4
0
 public void Execute(IActionContext context)
 {
     ResourceClipboardForm.RemoveSelectedResources();
 }
示例#5
0
 public void Update(IActionContext context, ref ActionPresentation presentation)
 {
     presentation.Checked = ResourceClipboardForm.IsVisible();
 }
示例#6
0
 public DnDHandler(ResourceClipboardForm parent)
 {
     _form = parent;
 }
示例#7
0
文件: CoreActions.cs 项目: mo5h/omeo
 public override void Execute(IActionContext context)
 {
     ResourceClipboardForm.ShowResourceClipboard(context.SelectedResources);
 }