Ejemplo n.º 1
0
        private void ButtonCopyClick(object sender, EventArgs e)
        {
            StringBuilder versionInfo = new StringBuilder();

            foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
            {
                AssemblyName name = a.GetName();
                versionInfo.Append(name.Name);
                versionInfo.Append(",");
                versionInfo.Append(name.Version.ToString());
                versionInfo.Append(",");
                try
                {
                    versionInfo.Append(a.Location);
                }
                catch (NotSupportedException)
                {
                    versionInfo.Append("dynamic");
                }

                versionInfo.Append(Environment.NewLine);
            }

            ClipboardWrapper.SetDataObject(versionInfo.ToString());
        }
Ejemplo n.º 2
0
        public void Copy()
        {
            if (resourceEditor.ResourceList.SelectedItems.Count < 1)
            {
                return;
            }

            Hashtable tmphash = new Hashtable();

            foreach (ListViewItem item in resourceEditor.ResourceList.SelectedItems)
            {
                object resourceValue = GetClonedResource(resourceEditor.ResourceList.Resources[item.Text].ResourceValue);
                tmphash.Add(item.Text, resourceValue);                 // copy a clone to clipboard
            }
            ClipboardWrapper.SetDataObject(tmphash);
        }
Ejemplo n.º 3
0
        public void Cut()
        {
            if (resourceEditor.ResourceList.WriteProtected || resourceEditor.ResourceList.SelectedItems.Count < 1)
            {
                return;
            }

            Hashtable tmphash = new Hashtable();

            foreach (ListViewItem item in resourceEditor.ResourceList.SelectedItems)
            {
                tmphash.Add(item.Text, resourceEditor.ResourceList.Resources[item.Text].ResourceValue);
                resourceEditor.ResourceList.Resources.Remove(item.Text);
                resourceEditor.ResourceList.Items.Remove(item);
            }
            resourceEditor.ResourceList.OnChanged();
            ClipboardWrapper.SetDataObject(tmphash);
        }
Ejemplo n.º 4
0
 public override void Cut()
 {
     DoPerformCut = true;
     ClipboardWrapper.SetDataObject(new DataObject(typeof(ISolutionFolder).ToString(), folder.IdGuid));
 }
Ejemplo n.º 5
0
 public override void Cut()
 {
     DoPerformCut = true;
     ClipboardWrapper.SetDataObject(FileOperationClipboardObject.CreateDataObject(this, true));
 }
Ejemplo n.º 6
0
 public override void Copy()
 {
     ClipboardWrapper.SetDataObject(FileOperationClipboardObject.CreateDataObject(this, false));
 }