This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ready to attempt store upload * Added "favorites" functionality * Improved quick paste options using new paste method to make it work in more applications. * New store upload attempt. * Improved paste action to also work in WPF applications. Modified to use WM_CHAR messages rather than a "paste from clipboard" action. * Catch unexpected exceptions and hope to live on * Added item preview * Updated assembly version and screenshots. * Update app store project accordingly * Fixed relative location of preview overlay
- Loading branch information
1 parent
700f191
commit e576b16
Showing
10 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
SimpleClipboardManager/Dialogs/PasteFromClipboardDialog.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace SimpleClipboardManager | ||
{ | ||
internal static class ExtensionMethods | ||
{ | ||
internal static Point LocationInForm(this Control control, Form form = null) | ||
{ | ||
if (form == null) | ||
{ | ||
form = control.FindForm(); | ||
if (form == null) | ||
throw new Exception("Form not found."); | ||
} | ||
|
||
Point cScreen = control.PointToScreen(control.Location); | ||
Point fScreen = form.Location; | ||
return new Point(cScreen.X - fScreen.X, cScreen.Y - fScreen.Y); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters