Ejemplo n.º 1
0
		private void EnsureDataTransferManager()
		{
			if (this.dtmHelper == null)
			{
				IntPtr windowHandle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
                this.dtmHelper = new DataTransferManagerHelper(windowHandle);
				this.dtmHelper.DataTransferManager.DataRequested += this.OnDataRequested;
			}
		}
Ejemplo n.º 2
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     dtmHelper = new DataTransferManagerHelper(this.Handle);
     dtmHelper.DataTransferManager.DataRequested += new TypedEventHandler<DataTransferManager, DataRequestedEventArgs>(this.DataRequested);
 }