Reused new OAuth 2 code for the Box plug-in, this was possible by adding the embedded browser. Also refactored code to be more readable, and have more reuse. Fixed problems with Picasa upload and pressing cancel on the PleaseWaitForm. [skip ci]

This commit is contained in:
Robin 2015-04-17 15:44:27 +02:00
parent 9d7299e5ea
commit 1f80d56b10
16 changed files with 408 additions and 277 deletions

View file

@ -87,7 +87,7 @@ namespace GreenshotPlugin.Controls {
/// <summary>
/// When this is set, the form will be brought to the foreground as soon as it is shown.
/// </summary>
protected bool BringToFront {
protected bool ToFront {
get;
set;
}
@ -162,7 +162,7 @@ namespace GreenshotPlugin.Controls {
/// <param name="e">EventArgs</param>
protected override void OnShown(EventArgs e) {
base.OnShown(e);
if (BringToFront) {
if (ToFront) {
WindowDetails.ToForeground(Handle);
}
}