示例#1
0
 /// <summary>
 /// Swaps the clip board contents.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 void SwapClipBoardContents(object sender, EventArgs e)
 {
     ToolStripMenuItem item = sender as ToolStripMenuItem;
     string filename = (string)item.Tag;
     try
     {
         cloud.CloudClipboardPaste(filename);
     }
     catch (Exception)
     {
         // retry by reauthenticating - last hope
         CommonFunctionality.Instance.Authenticate(true);
         cloud.CloudClipboardPaste(filename);
     }
 }