CopyFrom() public méthode

Copies another extension point.
public CopyFrom ( ExtensionPoint ep ) : void
ep ExtensionPoint /// Extension point from which to copy. ///
Résultat void
		public override void ActivateItem ()
		{
			DotNetProject project = (DotNetProject) CurrentNode.GetParentDataItem (typeof(DotNetProject), true);
			if (project == null)
				return;
			AddinData data = project.GetAddinData ();
			if (data == null)
				return;
			
			ExtensionPoint ep = (ExtensionPoint) CurrentNode.DataItem;
			ExtensionPoint epc = new ExtensionPoint ();
			epc.CopyFrom (ep);
			NewExtensionPointDialog epdlg = new NewExtensionPointDialog (project, data.AddinRegistry, data.CachedAddinManifest, epc);
			if (epdlg.Run () == (int) Gtk.ResponseType.Ok) {
				ep.CopyFrom (epc);
				data.CachedAddinManifest.Save ();
			}
			epdlg.Destroy ();
		}
		protected virtual void OnButtonPropertiesClicked (object sender, System.EventArgs e)
		{
			TreeIter iter;
			tree.Selection.GetSelected (out iter);
			
			ExtensionPoint ep = (ExtensionPoint) store.GetValue (iter, 0);
			ExtensionPoint epc = new ExtensionPoint ();
			epc.CopyFrom (ep);
			NewExtensionPointDialog epdlg = new NewExtensionPointDialog ((DotNetProject)data.Project, data.AddinRegistry, adesc, epc);
			if (epdlg.Run () == (int) ResponseType.Ok)
				ep.CopyFrom (epc);
			epdlg.Destroy ();
			Fill ();
			NotifyChanged ();
		}