mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-28 23:42:13 +12:00
Use OAuthLoopbackControl for Google Drive
This commit is contained in:
parent
7fb9ad6b60
commit
542df108d1
5 changed files with 8229 additions and 2133 deletions
|
@ -72,7 +72,8 @@ public enum GoogleDrivePermissionType
|
||||||
|
|
||||||
public sealed class GoogleDrive : FileUploader, IOAuth2
|
public sealed class GoogleDrive : FileUploader, IOAuth2
|
||||||
{
|
{
|
||||||
private GoogleOAuth2 GoogleAuth { get; set; }
|
public GoogleOAuth2 OAuth2 { get; private set; }
|
||||||
|
public OAuth2Info AuthInfo => OAuth2.AuthInfo;
|
||||||
public bool IsPublic { get; set; }
|
public bool IsPublic { get; set; }
|
||||||
public bool DirectLink { get; set; }
|
public bool DirectLink { get; set; }
|
||||||
public string FolderID { get; set; }
|
public string FolderID { get; set; }
|
||||||
|
@ -86,32 +87,30 @@ public sealed class GoogleDrive : FileUploader, IOAuth2
|
||||||
|
|
||||||
public GoogleDrive(OAuth2Info oauth)
|
public GoogleDrive(OAuth2Info oauth)
|
||||||
{
|
{
|
||||||
GoogleAuth = new GoogleOAuth2(oauth, this)
|
OAuth2 = new GoogleOAuth2(oauth, this)
|
||||||
{
|
{
|
||||||
Scope = "https://www.googleapis.com/auth/drive"
|
Scope = "https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/userinfo.profile"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public OAuth2Info AuthInfo => GoogleAuth.AuthInfo;
|
|
||||||
|
|
||||||
public bool RefreshAccessToken()
|
public bool RefreshAccessToken()
|
||||||
{
|
{
|
||||||
return GoogleAuth.RefreshAccessToken();
|
return OAuth2.RefreshAccessToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool CheckAuthorization()
|
public bool CheckAuthorization()
|
||||||
{
|
{
|
||||||
return GoogleAuth.CheckAuthorization();
|
return OAuth2.CheckAuthorization();
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetAuthorizationURL()
|
public string GetAuthorizationURL()
|
||||||
{
|
{
|
||||||
return GoogleAuth.GetAuthorizationURL();
|
return OAuth2.GetAuthorizationURL();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool GetAccessToken(string code)
|
public bool GetAccessToken(string code)
|
||||||
{
|
{
|
||||||
return GoogleAuth.GetAccessToken(code);
|
return OAuth2.GetAccessToken(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetMetadata(string name, string parentID, string driveID = "")
|
private string GetMetadata(string name, string parentID, string driveID = "")
|
||||||
|
@ -160,7 +159,7 @@ private void SetPermissions(string fileID, GoogleDrivePermissionRole role, Googl
|
||||||
allowFileDiscovery = allowFileDiscovery.ToString()
|
allowFileDiscovery = allowFileDiscovery.ToString()
|
||||||
});
|
});
|
||||||
|
|
||||||
SendRequest(HttpMethod.POST, url, json, RequestHelpers.ContentTypeJSON, null, GoogleAuth.GetAuthHeaders());
|
SendRequest(HttpMethod.POST, url, json, RequestHelpers.ContentTypeJSON, null, OAuth2.GetAuthHeaders());
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GoogleDriveFile> GetFolders(string driveID = "", bool trashed = false, bool writer = true)
|
public List<GoogleDriveFile> GetFolders(string driveID = "", bool trashed = false, bool writer = true)
|
||||||
|
@ -197,7 +196,7 @@ public List<GoogleDriveFile> GetFolders(string driveID = "", bool trashed = fals
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
args["pageToken"] = pageToken;
|
args["pageToken"] = pageToken;
|
||||||
string response = SendRequest(HttpMethod.GET, "https://www.googleapis.com/drive/v3/files", args, GoogleAuth.GetAuthHeaders());
|
string response = SendRequest(HttpMethod.GET, "https://www.googleapis.com/drive/v3/files", args, OAuth2.GetAuthHeaders());
|
||||||
pageToken = "";
|
pageToken = "";
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(response))
|
if (!string.IsNullOrEmpty(response))
|
||||||
|
@ -228,7 +227,7 @@ public List<GoogleDriveSharedDrive> GetDrives()
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
args["pageToken"] = pageToken;
|
args["pageToken"] = pageToken;
|
||||||
string response = SendRequest(HttpMethod.GET, "https://www.googleapis.com/drive/v3/drives", args, GoogleAuth.GetAuthHeaders());
|
string response = SendRequest(HttpMethod.GET, "https://www.googleapis.com/drive/v3/drives", args, OAuth2.GetAuthHeaders());
|
||||||
pageToken = "";
|
pageToken = "";
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(response))
|
if (!string.IsNullOrEmpty(response))
|
||||||
|
@ -254,7 +253,7 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
string metadata = GetMetadata(fileName, FolderID, DriveID);
|
string metadata = GetMetadata(fileName, FolderID, DriveID);
|
||||||
|
|
||||||
UploadResult result = SendRequestFile("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&fields=id,webViewLink,webContentLink&supportsAllDrives=true",
|
UploadResult result = SendRequestFile("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&fields=id,webViewLink,webContentLink&supportsAllDrives=true",
|
||||||
stream, fileName, "file", headers: GoogleAuth.GetAuthHeaders(), contentType: "multipart/related", relatedData: metadata);
|
stream, fileName, "file", headers: OAuth2.GetAuthHeaders(), contentType: "multipart/related", relatedData: metadata);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(result.Response))
|
if (!string.IsNullOrEmpty(result.Response))
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,6 +71,7 @@ private void InitializeComponent()
|
||||||
this.lblTwitterDefaultMessage = new System.Windows.Forms.Label();
|
this.lblTwitterDefaultMessage = new System.Windows.Forms.Label();
|
||||||
this.txtTwitterDefaultMessage = new System.Windows.Forms.TextBox();
|
this.txtTwitterDefaultMessage = new System.Windows.Forms.TextBox();
|
||||||
this.cbTwitterSkipMessageBox = new System.Windows.Forms.CheckBox();
|
this.cbTwitterSkipMessageBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oauthTwitter = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.txtTwitterDescription = new System.Windows.Forms.TextBox();
|
this.txtTwitterDescription = new System.Windows.Forms.TextBox();
|
||||||
this.lblTwitterDescription = new System.Windows.Forms.Label();
|
this.lblTwitterDescription = new System.Windows.Forms.Label();
|
||||||
this.btnTwitterRemove = new System.Windows.Forms.Button();
|
this.btnTwitterRemove = new System.Windows.Forms.Button();
|
||||||
|
@ -80,6 +81,7 @@ private void InitializeComponent()
|
||||||
this.tpBitly = new System.Windows.Forms.TabPage();
|
this.tpBitly = new System.Windows.Forms.TabPage();
|
||||||
this.txtBitlyDomain = new System.Windows.Forms.TextBox();
|
this.txtBitlyDomain = new System.Windows.Forms.TextBox();
|
||||||
this.lblBitlyDomain = new System.Windows.Forms.Label();
|
this.lblBitlyDomain = new System.Windows.Forms.Label();
|
||||||
|
this.oauth2Bitly = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpYourls = new System.Windows.Forms.TabPage();
|
this.tpYourls = new System.Windows.Forms.TabPage();
|
||||||
this.txtYourlsPassword = new System.Windows.Forms.TextBox();
|
this.txtYourlsPassword = new System.Windows.Forms.TextBox();
|
||||||
this.txtYourlsUsername = new System.Windows.Forms.TextBox();
|
this.txtYourlsUsername = new System.Windows.Forms.TextBox();
|
||||||
|
@ -187,10 +189,12 @@ private void InitializeComponent()
|
||||||
this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox();
|
this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox();
|
||||||
this.lblDropboxPath = new System.Windows.Forms.Label();
|
this.lblDropboxPath = new System.Windows.Forms.Label();
|
||||||
this.txtDropboxPath = new System.Windows.Forms.TextBox();
|
this.txtDropboxPath = new System.Windows.Forms.TextBox();
|
||||||
|
this.oauth2Dropbox = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpOneDrive = new System.Windows.Forms.TabPage();
|
this.tpOneDrive = new System.Windows.Forms.TabPage();
|
||||||
this.tvOneDrive = new System.Windows.Forms.TreeView();
|
this.tvOneDrive = new System.Windows.Forms.TreeView();
|
||||||
this.lblOneDriveFolderID = new System.Windows.Forms.Label();
|
this.lblOneDriveFolderID = new System.Windows.Forms.Label();
|
||||||
this.cbOneDriveCreateShareableLink = new System.Windows.Forms.CheckBox();
|
this.cbOneDriveCreateShareableLink = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oAuth2OneDrive = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpGoogleDrive = new System.Windows.Forms.TabPage();
|
this.tpGoogleDrive = new System.Windows.Forms.TabPage();
|
||||||
this.cbGoogleDriveSharedDrive = new System.Windows.Forms.ComboBox();
|
this.cbGoogleDriveSharedDrive = new System.Windows.Forms.ComboBox();
|
||||||
this.cbGoogleDriveDirectLink = new System.Windows.Forms.CheckBox();
|
this.cbGoogleDriveDirectLink = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -220,6 +224,7 @@ private void InitializeComponent()
|
||||||
this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.lblBoxFolderID = new System.Windows.Forms.Label();
|
this.lblBoxFolderID = new System.Windows.Forms.Label();
|
||||||
this.btnBoxRefreshFolders = new System.Windows.Forms.Button();
|
this.btnBoxRefreshFolders = new System.Windows.Forms.Button();
|
||||||
|
this.oauth2Box = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpAmazonS3 = new System.Windows.Forms.TabPage();
|
this.tpAmazonS3 = new System.Windows.Forms.TabPage();
|
||||||
this.gbAmazonS3Advanced = new System.Windows.Forms.GroupBox();
|
this.gbAmazonS3Advanced = new System.Windows.Forms.GroupBox();
|
||||||
this.cbAmazonS3SignedPayload = new System.Windows.Forms.CheckBox();
|
this.cbAmazonS3SignedPayload = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -266,6 +271,7 @@ private void InitializeComponent()
|
||||||
this.txtGoogleCloudStorageDomain = new System.Windows.Forms.TextBox();
|
this.txtGoogleCloudStorageDomain = new System.Windows.Forms.TextBox();
|
||||||
this.lblGoogleCloudStorageBucket = new System.Windows.Forms.Label();
|
this.lblGoogleCloudStorageBucket = new System.Windows.Forms.Label();
|
||||||
this.txtGoogleCloudStorageBucket = new System.Windows.Forms.TextBox();
|
this.txtGoogleCloudStorageBucket = new System.Windows.Forms.TextBox();
|
||||||
|
this.oauth2GoogleCloudStorage = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpAzureStorage = new System.Windows.Forms.TabPage();
|
this.tpAzureStorage = new System.Windows.Forms.TabPage();
|
||||||
this.lblAzureStorageURLPreview = new System.Windows.Forms.Label();
|
this.lblAzureStorageURLPreview = new System.Windows.Forms.Label();
|
||||||
this.lblAzureStorageURLPreviewLabel = new System.Windows.Forms.Label();
|
this.lblAzureStorageURLPreviewLabel = new System.Windows.Forms.Label();
|
||||||
|
@ -295,6 +301,8 @@ private void InitializeComponent()
|
||||||
this.lblGfycatTitle = new System.Windows.Forms.Label();
|
this.lblGfycatTitle = new System.Windows.Forms.Label();
|
||||||
this.cbGfycatKeepAudio = new System.Windows.Forms.CheckBox();
|
this.cbGfycatKeepAudio = new System.Windows.Forms.CheckBox();
|
||||||
this.cbGfycatIsPublic = new System.Windows.Forms.CheckBox();
|
this.cbGfycatIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
this.atcGfycatAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||||
|
this.oauth2Gfycat = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpMega = new System.Windows.Forms.TabPage();
|
this.tpMega = new System.Windows.Forms.TabPage();
|
||||||
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
||||||
this.lblMegaStatus = new System.Windows.Forms.Label();
|
this.lblMegaStatus = new System.Windows.Forms.Label();
|
||||||
|
@ -345,6 +353,7 @@ private void InitializeComponent()
|
||||||
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
|
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
|
||||||
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
|
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
|
||||||
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
|
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
|
||||||
|
this.atcSendSpaceAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||||
this.tpHostr = new System.Windows.Forms.TabPage();
|
this.tpHostr = new System.Windows.Forms.TabPage();
|
||||||
this.cbLocalhostrDirectURL = new System.Windows.Forms.CheckBox();
|
this.cbLocalhostrDirectURL = new System.Windows.Forms.CheckBox();
|
||||||
this.lblLocalhostrPassword = new System.Windows.Forms.Label();
|
this.lblLocalhostrPassword = new System.Windows.Forms.Label();
|
||||||
|
@ -358,6 +367,7 @@ private void InitializeComponent()
|
||||||
this.txtJiraConfigHelp = new System.Windows.Forms.TextBox();
|
this.txtJiraConfigHelp = new System.Windows.Forms.TextBox();
|
||||||
this.txtJiraHost = new System.Windows.Forms.TextBox();
|
this.txtJiraHost = new System.Windows.Forms.TextBox();
|
||||||
this.lblJiraHost = new System.Windows.Forms.Label();
|
this.lblJiraHost = new System.Windows.Forms.Label();
|
||||||
|
this.oAuthJira = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpLambda = new System.Windows.Forms.TabPage();
|
this.tpLambda = new System.Windows.Forms.TabPage();
|
||||||
this.lblLambdaInfo = new System.Windows.Forms.Label();
|
this.lblLambdaInfo = new System.Windows.Forms.Label();
|
||||||
this.lblLambdaApiKey = new System.Windows.Forms.Label();
|
this.lblLambdaApiKey = new System.Windows.Forms.Label();
|
||||||
|
@ -378,6 +388,7 @@ private void InitializeComponent()
|
||||||
this.cbTeknikEncrypt = new System.Windows.Forms.CheckBox();
|
this.cbTeknikEncrypt = new System.Windows.Forms.CheckBox();
|
||||||
this.lblTeknikUploadAPIUrl = new System.Windows.Forms.Label();
|
this.lblTeknikUploadAPIUrl = new System.Windows.Forms.Label();
|
||||||
this.tbTeknikUploadAPIUrl = new System.Windows.Forms.TextBox();
|
this.tbTeknikUploadAPIUrl = new System.Windows.Forms.TextBox();
|
||||||
|
this.oauthTeknik = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpPomf = new System.Windows.Forms.TabPage();
|
this.tpPomf = new System.Windows.Forms.TabPage();
|
||||||
this.txtPomfResultURL = new System.Windows.Forms.TextBox();
|
this.txtPomfResultURL = new System.Windows.Forms.TextBox();
|
||||||
this.txtPomfUploadURL = new System.Windows.Forms.TextBox();
|
this.txtPomfUploadURL = new System.Windows.Forms.TextBox();
|
||||||
|
@ -462,6 +473,7 @@ private void InitializeComponent()
|
||||||
this.txtPlikPassword = new System.Windows.Forms.TextBox();
|
this.txtPlikPassword = new System.Windows.Forms.TextBox();
|
||||||
this.txtPlikLogin = new System.Windows.Forms.TextBox();
|
this.txtPlikLogin = new System.Windows.Forms.TextBox();
|
||||||
this.tpYouTube = new System.Windows.Forms.TabPage();
|
this.tpYouTube = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2YouTube = new ShareX.UploadersLib.OAuthLoopbackControl();
|
||||||
this.llYouTubePermissionsLink = new System.Windows.Forms.LinkLabel();
|
this.llYouTubePermissionsLink = new System.Windows.Forms.LinkLabel();
|
||||||
this.lblYouTubePermissionsTip = new System.Windows.Forms.Label();
|
this.lblYouTubePermissionsTip = new System.Windows.Forms.Label();
|
||||||
this.cbYouTubeShowDialog = new System.Windows.Forms.CheckBox();
|
this.cbYouTubeShowDialog = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -527,6 +539,7 @@ private void InitializeComponent()
|
||||||
this.txtGistCustomURL = new System.Windows.Forms.TextBox();
|
this.txtGistCustomURL = new System.Windows.Forms.TextBox();
|
||||||
this.cbGistUseRawURL = new System.Windows.Forms.CheckBox();
|
this.cbGistUseRawURL = new System.Windows.Forms.CheckBox();
|
||||||
this.cbGistPublishPublic = new System.Windows.Forms.CheckBox();
|
this.cbGistPublishPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oAuth2Gist = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpUpaste = new System.Windows.Forms.TabPage();
|
this.tpUpaste = new System.Windows.Forms.TabPage();
|
||||||
this.cbUpasteIsPublic = new System.Windows.Forms.CheckBox();
|
this.cbUpasteIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
this.lblUpasteUserKey = new System.Windows.Forms.Label();
|
this.lblUpasteUserKey = new System.Windows.Forms.Label();
|
||||||
|
@ -550,6 +563,8 @@ private void InitializeComponent()
|
||||||
this.cbImgurUseGIFV = new System.Windows.Forms.CheckBox();
|
this.cbImgurUseGIFV = new System.Windows.Forms.CheckBox();
|
||||||
this.cbImgurUploadSelectedAlbum = new System.Windows.Forms.CheckBox();
|
this.cbImgurUploadSelectedAlbum = new System.Windows.Forms.CheckBox();
|
||||||
this.cbImgurDirectLink = new System.Windows.Forms.CheckBox();
|
this.cbImgurDirectLink = new System.Windows.Forms.CheckBox();
|
||||||
|
this.atcImgurAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||||
|
this.oauth2Imgur = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.lvImgurAlbumList = new ShareX.HelpersLib.MyListView();
|
this.lvImgurAlbumList = new ShareX.HelpersLib.MyListView();
|
||||||
this.chImgurID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.chImgurID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.chImgurTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.chImgurTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
|
@ -568,6 +583,7 @@ private void InitializeComponent()
|
||||||
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
||||||
this.tpFlickr = new System.Windows.Forms.TabPage();
|
this.tpFlickr = new System.Windows.Forms.TabPage();
|
||||||
this.cbFlickrDirectLink = new System.Windows.Forms.CheckBox();
|
this.cbFlickrDirectLink = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oauthFlickr = new ShareX.UploadersLib.OAuthControl();
|
||||||
this.tpPhotobucket = new System.Windows.Forms.TabPage();
|
this.tpPhotobucket = new System.Windows.Forms.TabPage();
|
||||||
this.gbPhotobucketAlbumPath = new System.Windows.Forms.GroupBox();
|
this.gbPhotobucketAlbumPath = new System.Windows.Forms.GroupBox();
|
||||||
this.btnPhotobucketAddAlbum = new System.Windows.Forms.Button();
|
this.btnPhotobucketAddAlbum = new System.Windows.Forms.Button();
|
||||||
|
@ -588,6 +604,7 @@ private void InitializeComponent()
|
||||||
this.txtPhotobucketVerificationCode = new System.Windows.Forms.TextBox();
|
this.txtPhotobucketVerificationCode = new System.Windows.Forms.TextBox();
|
||||||
this.lblPhotobucketAccountStatus = new System.Windows.Forms.Label();
|
this.lblPhotobucketAccountStatus = new System.Windows.Forms.Label();
|
||||||
this.tpGooglePhotos = new System.Windows.Forms.TabPage();
|
this.tpGooglePhotos = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2GooglePhotos = new ShareX.UploadersLib.OAuthLoopbackControl();
|
||||||
this.lblGooglePhotosCreateAlbumName = new System.Windows.Forms.Label();
|
this.lblGooglePhotosCreateAlbumName = new System.Windows.Forms.Label();
|
||||||
this.txtGooglePhotosCreateAlbumName = new System.Windows.Forms.TextBox();
|
this.txtGooglePhotosCreateAlbumName = new System.Windows.Forms.TextBox();
|
||||||
this.btnGooglePhotosCreateAlbum = new System.Windows.Forms.Button();
|
this.btnGooglePhotosCreateAlbum = new System.Windows.Forms.Button();
|
||||||
|
@ -612,25 +629,8 @@ private void InitializeComponent()
|
||||||
this.lvlVgymeUserKey = new System.Windows.Forms.Label();
|
this.lvlVgymeUserKey = new System.Windows.Forms.Label();
|
||||||
this.tcUploaders = new System.Windows.Forms.TabControl();
|
this.tcUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.tttvMain = new ShareX.HelpersLib.TabToTreeView();
|
this.tttvMain = new ShareX.HelpersLib.TabToTreeView();
|
||||||
this.atcImgurAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
|
||||||
this.oauth2Imgur = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauthFlickr = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2GooglePhotos = new ShareX.UploadersLib.OAuthLoopbackControl();
|
|
||||||
this.oAuth2Gist = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2Dropbox = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oAuth2OneDrive = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2GoogleDrive = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2Box = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2GoogleCloudStorage = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauthTwitter = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2Bitly = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.atcGfycatAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
|
||||||
this.oauth2Gfycat = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.atcSendSpaceAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
|
||||||
this.oAuthJira = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauthTeknik = new ShareX.UploadersLib.OAuthControl();
|
|
||||||
this.oauth2YouTube = new ShareX.UploadersLib.OAuthLoopbackControl();
|
|
||||||
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||||
|
this.oauth2GoogleDrive = new ShareX.UploadersLib.OAuthLoopbackControl();
|
||||||
this.tpOtherUploaders.SuspendLayout();
|
this.tpOtherUploaders.SuspendLayout();
|
||||||
this.tcOtherUploaders.SuspendLayout();
|
this.tcOtherUploaders.SuspendLayout();
|
||||||
this.tpTwitter.SuspendLayout();
|
this.tpTwitter.SuspendLayout();
|
||||||
|
@ -840,6 +840,16 @@ private void InitializeComponent()
|
||||||
this.cbTwitterSkipMessageBox.UseVisualStyleBackColor = true;
|
this.cbTwitterSkipMessageBox.UseVisualStyleBackColor = true;
|
||||||
this.cbTwitterSkipMessageBox.CheckedChanged += new System.EventHandler(this.cbTwitterSkipMessageBox_CheckedChanged);
|
this.cbTwitterSkipMessageBox.CheckedChanged += new System.EventHandler(this.cbTwitterSkipMessageBox_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oauthTwitter
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauthTwitter, "oauthTwitter");
|
||||||
|
this.oauthTwitter.IsRefreshable = false;
|
||||||
|
this.oauthTwitter.Name = "oauthTwitter";
|
||||||
|
this.oauthTwitter.UserInfo = null;
|
||||||
|
this.oauthTwitter.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTwitter_OpenButtonClicked);
|
||||||
|
this.oauthTwitter.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTwitter_CompleteButtonClicked);
|
||||||
|
this.oauthTwitter.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTwitter_ClearButtonClicked);
|
||||||
|
//
|
||||||
// txtTwitterDescription
|
// txtTwitterDescription
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.txtTwitterDescription, "txtTwitterDescription");
|
resources.ApplyResources(this.txtTwitterDescription, "txtTwitterDescription");
|
||||||
|
@ -904,6 +914,16 @@ private void InitializeComponent()
|
||||||
resources.ApplyResources(this.lblBitlyDomain, "lblBitlyDomain");
|
resources.ApplyResources(this.lblBitlyDomain, "lblBitlyDomain");
|
||||||
this.lblBitlyDomain.Name = "lblBitlyDomain";
|
this.lblBitlyDomain.Name = "lblBitlyDomain";
|
||||||
//
|
//
|
||||||
|
// oauth2Bitly
|
||||||
|
//
|
||||||
|
this.oauth2Bitly.IsRefreshable = false;
|
||||||
|
resources.ApplyResources(this.oauth2Bitly, "oauth2Bitly");
|
||||||
|
this.oauth2Bitly.Name = "oauth2Bitly";
|
||||||
|
this.oauth2Bitly.UserInfo = null;
|
||||||
|
this.oauth2Bitly.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
||||||
|
this.oauth2Bitly.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
||||||
|
this.oauth2Bitly.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpYourls
|
// tpYourls
|
||||||
//
|
//
|
||||||
this.tpYourls.BackColor = System.Drawing.SystemColors.Window;
|
this.tpYourls.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -1700,6 +1720,16 @@ private void InitializeComponent()
|
||||||
this.txtDropboxPath.Name = "txtDropboxPath";
|
this.txtDropboxPath.Name = "txtDropboxPath";
|
||||||
this.txtDropboxPath.TextChanged += new System.EventHandler(this.txtDropboxPath_TextChanged);
|
this.txtDropboxPath.TextChanged += new System.EventHandler(this.txtDropboxPath_TextChanged);
|
||||||
//
|
//
|
||||||
|
// oauth2Dropbox
|
||||||
|
//
|
||||||
|
this.oauth2Dropbox.IsRefreshable = false;
|
||||||
|
resources.ApplyResources(this.oauth2Dropbox, "oauth2Dropbox");
|
||||||
|
this.oauth2Dropbox.Name = "oauth2Dropbox";
|
||||||
|
this.oauth2Dropbox.UserInfo = null;
|
||||||
|
this.oauth2Dropbox.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked);
|
||||||
|
this.oauth2Dropbox.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked);
|
||||||
|
this.oauth2Dropbox.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpOneDrive
|
// tpOneDrive
|
||||||
//
|
//
|
||||||
this.tpOneDrive.BackColor = System.Drawing.SystemColors.Window;
|
this.tpOneDrive.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -1729,9 +1759,20 @@ private void InitializeComponent()
|
||||||
this.cbOneDriveCreateShareableLink.UseVisualStyleBackColor = true;
|
this.cbOneDriveCreateShareableLink.UseVisualStyleBackColor = true;
|
||||||
this.cbOneDriveCreateShareableLink.CheckedChanged += new System.EventHandler(this.cbOneDriveCreateShareableLink_CheckedChanged);
|
this.cbOneDriveCreateShareableLink.CheckedChanged += new System.EventHandler(this.cbOneDriveCreateShareableLink_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oAuth2OneDrive
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oAuth2OneDrive, "oAuth2OneDrive");
|
||||||
|
this.oAuth2OneDrive.Name = "oAuth2OneDrive";
|
||||||
|
this.oAuth2OneDrive.UserInfo = null;
|
||||||
|
this.oAuth2OneDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2OneDrive_OpenButtonClicked);
|
||||||
|
this.oAuth2OneDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2OneDrive_CompleteButtonClicked);
|
||||||
|
this.oAuth2OneDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2OneDrive_ClearButtonClicked);
|
||||||
|
this.oAuth2OneDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuth2OneDrive_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpGoogleDrive
|
// tpGoogleDrive
|
||||||
//
|
//
|
||||||
this.tpGoogleDrive.BackColor = System.Drawing.SystemColors.Window;
|
this.tpGoogleDrive.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
this.tpGoogleDrive.Controls.Add(this.oauth2GoogleDrive);
|
||||||
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveSharedDrive);
|
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveSharedDrive);
|
||||||
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveDirectLink);
|
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveDirectLink);
|
||||||
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveUseFolder);
|
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveUseFolder);
|
||||||
|
@ -1740,7 +1781,6 @@ private void InitializeComponent()
|
||||||
this.tpGoogleDrive.Controls.Add(this.lvGoogleDriveFoldersList);
|
this.tpGoogleDrive.Controls.Add(this.lvGoogleDriveFoldersList);
|
||||||
this.tpGoogleDrive.Controls.Add(this.btnGoogleDriveRefreshFolders);
|
this.tpGoogleDrive.Controls.Add(this.btnGoogleDriveRefreshFolders);
|
||||||
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveIsPublic);
|
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveIsPublic);
|
||||||
this.tpGoogleDrive.Controls.Add(this.oauth2GoogleDrive);
|
|
||||||
resources.ApplyResources(this.tpGoogleDrive, "tpGoogleDrive");
|
resources.ApplyResources(this.tpGoogleDrive, "tpGoogleDrive");
|
||||||
this.tpGoogleDrive.Name = "tpGoogleDrive";
|
this.tpGoogleDrive.Name = "tpGoogleDrive";
|
||||||
//
|
//
|
||||||
|
@ -1944,6 +1984,16 @@ private void InitializeComponent()
|
||||||
this.btnBoxRefreshFolders.UseVisualStyleBackColor = true;
|
this.btnBoxRefreshFolders.UseVisualStyleBackColor = true;
|
||||||
this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click);
|
this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click);
|
||||||
//
|
//
|
||||||
|
// oauth2Box
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2Box, "oauth2Box");
|
||||||
|
this.oauth2Box.Name = "oauth2Box";
|
||||||
|
this.oauth2Box.UserInfo = null;
|
||||||
|
this.oauth2Box.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked);
|
||||||
|
this.oauth2Box.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked);
|
||||||
|
this.oauth2Box.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked);
|
||||||
|
this.oauth2Box.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpAmazonS3
|
// tpAmazonS3
|
||||||
//
|
//
|
||||||
this.tpAmazonS3.BackColor = System.Drawing.SystemColors.Window;
|
this.tpAmazonS3.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -2267,6 +2317,16 @@ private void InitializeComponent()
|
||||||
this.txtGoogleCloudStorageBucket.Name = "txtGoogleCloudStorageBucket";
|
this.txtGoogleCloudStorageBucket.Name = "txtGoogleCloudStorageBucket";
|
||||||
this.txtGoogleCloudStorageBucket.TextChanged += new System.EventHandler(this.txtGoogleCloudStorageBucket_TextChanged);
|
this.txtGoogleCloudStorageBucket.TextChanged += new System.EventHandler(this.txtGoogleCloudStorageBucket_TextChanged);
|
||||||
//
|
//
|
||||||
|
// oauth2GoogleCloudStorage
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2GoogleCloudStorage, "oauth2GoogleCloudStorage");
|
||||||
|
this.oauth2GoogleCloudStorage.Name = "oauth2GoogleCloudStorage";
|
||||||
|
this.oauth2GoogleCloudStorage.UserInfo = null;
|
||||||
|
this.oauth2GoogleCloudStorage.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleCloudStorage_OpenButtonClicked);
|
||||||
|
this.oauth2GoogleCloudStorage.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleCloudStorage_CompleteButtonClicked);
|
||||||
|
this.oauth2GoogleCloudStorage.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleCloudStorage_ClearButtonClicked);
|
||||||
|
this.oauth2GoogleCloudStorage.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleCloudStorage_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpAzureStorage
|
// tpAzureStorage
|
||||||
//
|
//
|
||||||
this.tpAzureStorage.BackColor = System.Drawing.SystemColors.Window;
|
this.tpAzureStorage.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -2472,6 +2532,23 @@ private void InitializeComponent()
|
||||||
this.cbGfycatIsPublic.UseVisualStyleBackColor = true;
|
this.cbGfycatIsPublic.UseVisualStyleBackColor = true;
|
||||||
this.cbGfycatIsPublic.CheckedChanged += new System.EventHandler(this.cbGfycatIsPublic_CheckedChanged);
|
this.cbGfycatIsPublic.CheckedChanged += new System.EventHandler(this.cbGfycatIsPublic_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// atcGfycatAccountType
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.atcGfycatAccountType, "atcGfycatAccountType");
|
||||||
|
this.atcGfycatAccountType.Name = "atcGfycatAccountType";
|
||||||
|
this.atcGfycatAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcGfycatAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGfycatAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
|
// oauth2Gfycat
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2Gfycat, "oauth2Gfycat");
|
||||||
|
this.oauth2Gfycat.Name = "oauth2Gfycat";
|
||||||
|
this.oauth2Gfycat.UserInfo = null;
|
||||||
|
this.oauth2Gfycat.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Gfycat_OpenButtonClicked);
|
||||||
|
this.oauth2Gfycat.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Gfycat_CompleteButtonClicked);
|
||||||
|
this.oauth2Gfycat.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Gfycat_ClearButtonClicked);
|
||||||
|
this.oauth2Gfycat.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Gfycat_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpMega
|
// tpMega
|
||||||
//
|
//
|
||||||
this.tpMega.BackColor = System.Drawing.SystemColors.Window;
|
this.tpMega.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -2838,6 +2915,13 @@ private void InitializeComponent()
|
||||||
this.txtSendSpaceUserName.Name = "txtSendSpaceUserName";
|
this.txtSendSpaceUserName.Name = "txtSendSpaceUserName";
|
||||||
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
||||||
//
|
//
|
||||||
|
// atcSendSpaceAccountType
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.atcSendSpaceAccountType, "atcSendSpaceAccountType");
|
||||||
|
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
||||||
|
this.atcSendSpaceAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcSendSpaceAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpHostr
|
// tpHostr
|
||||||
//
|
//
|
||||||
this.tpHostr.BackColor = System.Drawing.SystemColors.Window;
|
this.tpHostr.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -2927,6 +3011,16 @@ private void InitializeComponent()
|
||||||
resources.ApplyResources(this.lblJiraHost, "lblJiraHost");
|
resources.ApplyResources(this.lblJiraHost, "lblJiraHost");
|
||||||
this.lblJiraHost.Name = "lblJiraHost";
|
this.lblJiraHost.Name = "lblJiraHost";
|
||||||
//
|
//
|
||||||
|
// oAuthJira
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oAuthJira, "oAuthJira");
|
||||||
|
this.oAuthJira.Name = "oAuthJira";
|
||||||
|
this.oAuthJira.UserInfo = null;
|
||||||
|
this.oAuthJira.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
||||||
|
this.oAuthJira.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
||||||
|
this.oAuthJira.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked);
|
||||||
|
this.oAuthJira.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpLambda
|
// tpLambda
|
||||||
//
|
//
|
||||||
this.tpLambda.BackColor = System.Drawing.SystemColors.Window;
|
this.tpLambda.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -3071,6 +3165,16 @@ private void InitializeComponent()
|
||||||
this.tbTeknikUploadAPIUrl.Name = "tbTeknikUploadAPIUrl";
|
this.tbTeknikUploadAPIUrl.Name = "tbTeknikUploadAPIUrl";
|
||||||
this.tbTeknikUploadAPIUrl.TextChanged += new System.EventHandler(this.tbTeknikUploadAPIUrl_TextChanged);
|
this.tbTeknikUploadAPIUrl.TextChanged += new System.EventHandler(this.tbTeknikUploadAPIUrl_TextChanged);
|
||||||
//
|
//
|
||||||
|
// oauthTeknik
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauthTeknik, "oauthTeknik");
|
||||||
|
this.oauthTeknik.Name = "oauthTeknik";
|
||||||
|
this.oauthTeknik.UserInfo = null;
|
||||||
|
this.oauthTeknik.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTeknik_OpenButtonClicked);
|
||||||
|
this.oauthTeknik.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTeknik_CompleteButtonClicked);
|
||||||
|
this.oauthTeknik.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTeknik_ClearButtonClicked);
|
||||||
|
this.oauthTeknik.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauthTeknik_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpPomf
|
// tpPomf
|
||||||
//
|
//
|
||||||
this.tpPomf.BackColor = System.Drawing.SystemColors.Window;
|
this.tpPomf.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -3699,6 +3803,14 @@ private void InitializeComponent()
|
||||||
this.tpYouTube.Name = "tpYouTube";
|
this.tpYouTube.Name = "tpYouTube";
|
||||||
this.tpYouTube.UseVisualStyleBackColor = true;
|
this.tpYouTube.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// oauth2YouTube
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2YouTube, "oauth2YouTube");
|
||||||
|
this.oauth2YouTube.Name = "oauth2YouTube";
|
||||||
|
this.oauth2YouTube.UserInfo = null;
|
||||||
|
this.oauth2YouTube.ConnectButtonClicked += new System.Action(this.oauth2YouTube_ConnectButtonClicked);
|
||||||
|
this.oauth2YouTube.DisconnectButtonClicked += new System.Action(this.oauth2YouTube_DisconnectButtonClicked);
|
||||||
|
//
|
||||||
// llYouTubePermissionsLink
|
// llYouTubePermissionsLink
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.llYouTubePermissionsLink, "llYouTubePermissionsLink");
|
resources.ApplyResources(this.llYouTubePermissionsLink, "llYouTubePermissionsLink");
|
||||||
|
@ -4170,6 +4282,16 @@ private void InitializeComponent()
|
||||||
this.cbGistPublishPublic.UseVisualStyleBackColor = true;
|
this.cbGistPublishPublic.UseVisualStyleBackColor = true;
|
||||||
this.cbGistPublishPublic.CheckedChanged += new System.EventHandler(this.cbGistPublishPublic_CheckedChanged);
|
this.cbGistPublishPublic.CheckedChanged += new System.EventHandler(this.cbGistPublishPublic_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oAuth2Gist
|
||||||
|
//
|
||||||
|
this.oAuth2Gist.IsRefreshable = false;
|
||||||
|
resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist");
|
||||||
|
this.oAuth2Gist.Name = "oAuth2Gist";
|
||||||
|
this.oAuth2Gist.UserInfo = null;
|
||||||
|
this.oAuth2Gist.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
||||||
|
this.oAuth2Gist.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
||||||
|
this.oAuth2Gist.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpUpaste
|
// tpUpaste
|
||||||
//
|
//
|
||||||
this.tpUpaste.BackColor = System.Drawing.SystemColors.Window;
|
this.tpUpaste.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -4341,6 +4463,23 @@ private void InitializeComponent()
|
||||||
this.cbImgurDirectLink.UseVisualStyleBackColor = true;
|
this.cbImgurDirectLink.UseVisualStyleBackColor = true;
|
||||||
this.cbImgurDirectLink.CheckedChanged += new System.EventHandler(this.cbImgurDirectLink_CheckedChanged);
|
this.cbImgurDirectLink.CheckedChanged += new System.EventHandler(this.cbImgurDirectLink_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// atcImgurAccountType
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.atcImgurAccountType, "atcImgurAccountType");
|
||||||
|
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
||||||
|
this.atcImgurAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcImgurAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
|
// oauth2Imgur
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2Imgur, "oauth2Imgur");
|
||||||
|
this.oauth2Imgur.Name = "oauth2Imgur";
|
||||||
|
this.oauth2Imgur.UserInfo = null;
|
||||||
|
this.oauth2Imgur.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
||||||
|
this.oauth2Imgur.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
||||||
|
this.oauth2Imgur.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked);
|
||||||
|
this.oauth2Imgur.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// lvImgurAlbumList
|
// lvImgurAlbumList
|
||||||
//
|
//
|
||||||
this.lvImgurAlbumList.AllowColumnSort = true;
|
this.lvImgurAlbumList.AllowColumnSort = true;
|
||||||
|
@ -4470,6 +4609,16 @@ private void InitializeComponent()
|
||||||
this.cbFlickrDirectLink.UseVisualStyleBackColor = true;
|
this.cbFlickrDirectLink.UseVisualStyleBackColor = true;
|
||||||
this.cbFlickrDirectLink.CheckedChanged += new System.EventHandler(this.cbFlickrDirectLink_CheckedChanged);
|
this.cbFlickrDirectLink.CheckedChanged += new System.EventHandler(this.cbFlickrDirectLink_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oauthFlickr
|
||||||
|
//
|
||||||
|
this.oauthFlickr.IsRefreshable = false;
|
||||||
|
resources.ApplyResources(this.oauthFlickr, "oauthFlickr");
|
||||||
|
this.oauthFlickr.Name = "oauthFlickr";
|
||||||
|
this.oauthFlickr.UserInfo = null;
|
||||||
|
this.oauthFlickr.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthFlickr_OpenButtonClicked);
|
||||||
|
this.oauthFlickr.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthFlickr_CompleteButtonClicked);
|
||||||
|
this.oauthFlickr.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthFlickr_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpPhotobucket
|
// tpPhotobucket
|
||||||
//
|
//
|
||||||
this.tpPhotobucket.BackColor = System.Drawing.SystemColors.Window;
|
this.tpPhotobucket.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -4615,6 +4764,14 @@ private void InitializeComponent()
|
||||||
resources.ApplyResources(this.tpGooglePhotos, "tpGooglePhotos");
|
resources.ApplyResources(this.tpGooglePhotos, "tpGooglePhotos");
|
||||||
this.tpGooglePhotos.Name = "tpGooglePhotos";
|
this.tpGooglePhotos.Name = "tpGooglePhotos";
|
||||||
//
|
//
|
||||||
|
// oauth2GooglePhotos
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.oauth2GooglePhotos, "oauth2GooglePhotos");
|
||||||
|
this.oauth2GooglePhotos.Name = "oauth2GooglePhotos";
|
||||||
|
this.oauth2GooglePhotos.UserInfo = null;
|
||||||
|
this.oauth2GooglePhotos.ConnectButtonClicked += new System.Action(this.oauth2GooglePhotos_ConnectButtonClicked);
|
||||||
|
this.oauth2GooglePhotos.DisconnectButtonClicked += new System.Action(this.oauth2GooglePhotos_DisconnectButtonClicked);
|
||||||
|
//
|
||||||
// lblGooglePhotosCreateAlbumName
|
// lblGooglePhotosCreateAlbumName
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.lblGooglePhotosCreateAlbumName, "lblGooglePhotosCreateAlbumName");
|
resources.ApplyResources(this.lblGooglePhotosCreateAlbumName, "lblGooglePhotosCreateAlbumName");
|
||||||
|
@ -4782,178 +4939,19 @@ private void InitializeComponent()
|
||||||
this.tttvMain.TreeViewFont = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
|
this.tttvMain.TreeViewFont = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
|
||||||
this.tttvMain.TreeViewSize = 230;
|
this.tttvMain.TreeViewSize = 230;
|
||||||
//
|
//
|
||||||
// atcImgurAccountType
|
// actRapidShareAccountType
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.atcImgurAccountType, "atcImgurAccountType");
|
resources.ApplyResources(this.actRapidShareAccountType, "actRapidShareAccountType");
|
||||||
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
|
||||||
this.atcImgurAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||||
this.atcImgurAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Imgur
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2Imgur, "oauth2Imgur");
|
|
||||||
this.oauth2Imgur.Name = "oauth2Imgur";
|
|
||||||
this.oauth2Imgur.UserInfo = null;
|
|
||||||
this.oauth2Imgur.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
|
||||||
this.oauth2Imgur.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
|
||||||
this.oauth2Imgur.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked);
|
|
||||||
this.oauth2Imgur.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauthFlickr
|
|
||||||
//
|
|
||||||
this.oauthFlickr.IsRefreshable = false;
|
|
||||||
resources.ApplyResources(this.oauthFlickr, "oauthFlickr");
|
|
||||||
this.oauthFlickr.Name = "oauthFlickr";
|
|
||||||
this.oauthFlickr.UserInfo = null;
|
|
||||||
this.oauthFlickr.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthFlickr_OpenButtonClicked);
|
|
||||||
this.oauthFlickr.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthFlickr_CompleteButtonClicked);
|
|
||||||
this.oauthFlickr.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthFlickr_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2GooglePhotos
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2GooglePhotos, "oauth2GooglePhotos");
|
|
||||||
this.oauth2GooglePhotos.Name = "oauth2GooglePhotos";
|
|
||||||
this.oauth2GooglePhotos.UserInfo = null;
|
|
||||||
this.oauth2GooglePhotos.ConnectButtonClicked += new System.Action(this.oauth2GooglePhotos_ConnectButtonClicked);
|
|
||||||
this.oauth2GooglePhotos.DisconnectButtonClicked += new System.Action(this.oauth2GooglePhotos_DisconnectButtonClicked);
|
|
||||||
//
|
|
||||||
// oAuth2Gist
|
|
||||||
//
|
|
||||||
this.oAuth2Gist.IsRefreshable = false;
|
|
||||||
resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist");
|
|
||||||
this.oAuth2Gist.Name = "oAuth2Gist";
|
|
||||||
this.oAuth2Gist.UserInfo = null;
|
|
||||||
this.oAuth2Gist.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
|
||||||
this.oAuth2Gist.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
|
||||||
this.oAuth2Gist.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2Dropbox
|
|
||||||
//
|
|
||||||
this.oauth2Dropbox.IsRefreshable = false;
|
|
||||||
resources.ApplyResources(this.oauth2Dropbox, "oauth2Dropbox");
|
|
||||||
this.oauth2Dropbox.Name = "oauth2Dropbox";
|
|
||||||
this.oauth2Dropbox.UserInfo = null;
|
|
||||||
this.oauth2Dropbox.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked);
|
|
||||||
this.oauth2Dropbox.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked);
|
|
||||||
this.oauth2Dropbox.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oAuth2OneDrive
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oAuth2OneDrive, "oAuth2OneDrive");
|
|
||||||
this.oAuth2OneDrive.Name = "oAuth2OneDrive";
|
|
||||||
this.oAuth2OneDrive.UserInfo = null;
|
|
||||||
this.oAuth2OneDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2OneDrive_OpenButtonClicked);
|
|
||||||
this.oAuth2OneDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2OneDrive_CompleteButtonClicked);
|
|
||||||
this.oAuth2OneDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2OneDrive_ClearButtonClicked);
|
|
||||||
this.oAuth2OneDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuth2OneDrive_RefreshButtonClicked);
|
|
||||||
//
|
//
|
||||||
// oauth2GoogleDrive
|
// oauth2GoogleDrive
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive");
|
resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive");
|
||||||
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
||||||
this.oauth2GoogleDrive.UserInfo = null;
|
this.oauth2GoogleDrive.UserInfo = null;
|
||||||
this.oauth2GoogleDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
this.oauth2GoogleDrive.ConnectButtonClicked += new System.Action(this.oauth2GoogleDrive_ConnectButtonClicked);
|
||||||
this.oauth2GoogleDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
this.oauth2GoogleDrive.DisconnectButtonClicked += new System.Action(this.oauth2GoogleDrive_DisconnectButtonClicked);
|
||||||
this.oauth2GoogleDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2Box
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2Box, "oauth2Box");
|
|
||||||
this.oauth2Box.Name = "oauth2Box";
|
|
||||||
this.oauth2Box.UserInfo = null;
|
|
||||||
this.oauth2Box.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked);
|
|
||||||
this.oauth2Box.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked);
|
|
||||||
this.oauth2Box.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked);
|
|
||||||
this.oauth2Box.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2GoogleCloudStorage
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2GoogleCloudStorage, "oauth2GoogleCloudStorage");
|
|
||||||
this.oauth2GoogleCloudStorage.Name = "oauth2GoogleCloudStorage";
|
|
||||||
this.oauth2GoogleCloudStorage.UserInfo = null;
|
|
||||||
this.oauth2GoogleCloudStorage.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleCloudStorage_OpenButtonClicked);
|
|
||||||
this.oauth2GoogleCloudStorage.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleCloudStorage_CompleteButtonClicked);
|
|
||||||
this.oauth2GoogleCloudStorage.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleCloudStorage_ClearButtonClicked);
|
|
||||||
this.oauth2GoogleCloudStorage.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleCloudStorage_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauthTwitter
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauthTwitter, "oauthTwitter");
|
|
||||||
this.oauthTwitter.IsRefreshable = false;
|
|
||||||
this.oauthTwitter.Name = "oauthTwitter";
|
|
||||||
this.oauthTwitter.UserInfo = null;
|
|
||||||
this.oauthTwitter.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTwitter_OpenButtonClicked);
|
|
||||||
this.oauthTwitter.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTwitter_CompleteButtonClicked);
|
|
||||||
this.oauthTwitter.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTwitter_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2Bitly
|
|
||||||
//
|
|
||||||
this.oauth2Bitly.IsRefreshable = false;
|
|
||||||
resources.ApplyResources(this.oauth2Bitly, "oauth2Bitly");
|
|
||||||
this.oauth2Bitly.Name = "oauth2Bitly";
|
|
||||||
this.oauth2Bitly.UserInfo = null;
|
|
||||||
this.oauth2Bitly.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
|
||||||
this.oauth2Bitly.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
|
||||||
this.oauth2Bitly.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// atcGfycatAccountType
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.atcGfycatAccountType, "atcGfycatAccountType");
|
|
||||||
this.atcGfycatAccountType.Name = "atcGfycatAccountType";
|
|
||||||
this.atcGfycatAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcGfycatAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGfycatAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Gfycat
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2Gfycat, "oauth2Gfycat");
|
|
||||||
this.oauth2Gfycat.Name = "oauth2Gfycat";
|
|
||||||
this.oauth2Gfycat.UserInfo = null;
|
|
||||||
this.oauth2Gfycat.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Gfycat_OpenButtonClicked);
|
|
||||||
this.oauth2Gfycat.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Gfycat_CompleteButtonClicked);
|
|
||||||
this.oauth2Gfycat.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Gfycat_ClearButtonClicked);
|
|
||||||
this.oauth2Gfycat.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Gfycat_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcSendSpaceAccountType
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.atcSendSpaceAccountType, "atcSendSpaceAccountType");
|
|
||||||
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
|
||||||
this.atcSendSpaceAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcSendSpaceAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oAuthJira
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oAuthJira, "oAuthJira");
|
|
||||||
this.oAuthJira.Name = "oAuthJira";
|
|
||||||
this.oAuthJira.UserInfo = null;
|
|
||||||
this.oAuthJira.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
|
||||||
this.oAuthJira.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
|
||||||
this.oAuthJira.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked);
|
|
||||||
this.oAuthJira.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauthTeknik
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauthTeknik, "oauthTeknik");
|
|
||||||
this.oauthTeknik.Name = "oauthTeknik";
|
|
||||||
this.oauthTeknik.UserInfo = null;
|
|
||||||
this.oauthTeknik.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTeknik_OpenButtonClicked);
|
|
||||||
this.oauthTeknik.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTeknik_CompleteButtonClicked);
|
|
||||||
this.oauthTeknik.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTeknik_ClearButtonClicked);
|
|
||||||
this.oauthTeknik.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauthTeknik_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2YouTube
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.oauth2YouTube, "oauth2YouTube");
|
|
||||||
this.oauth2YouTube.Name = "oauth2YouTube";
|
|
||||||
this.oauth2YouTube.UserInfo = null;
|
|
||||||
this.oauth2YouTube.ConnectButtonClicked += new System.Action(this.oauth2YouTube_ConnectButtonClicked);
|
|
||||||
this.oauth2YouTube.DisconnectButtonClicked += new System.Action(this.oauth2YouTube_DisconnectButtonClicked);
|
|
||||||
//
|
|
||||||
// actRapidShareAccountType
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.actRapidShareAccountType, "actRapidShareAccountType");
|
|
||||||
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
|
|
||||||
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
|
||||||
//
|
//
|
||||||
// UploadersConfigForm
|
// UploadersConfigForm
|
||||||
//
|
//
|
||||||
|
@ -5182,7 +5180,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.Label lblPushbulletUserKey;
|
private System.Windows.Forms.Label lblPushbulletUserKey;
|
||||||
private System.Windows.Forms.TextBox txtPushbulletUserKey;
|
private System.Windows.Forms.TextBox txtPushbulletUserKey;
|
||||||
private System.Windows.Forms.CheckBox cbGoogleDriveIsPublic;
|
private System.Windows.Forms.CheckBox cbGoogleDriveIsPublic;
|
||||||
private OAuthControl oauth2GoogleDrive;
|
|
||||||
private System.Windows.Forms.Label lblBoxFolderTip;
|
private System.Windows.Forms.Label lblBoxFolderTip;
|
||||||
private System.Windows.Forms.CheckBox cbBoxShare;
|
private System.Windows.Forms.CheckBox cbBoxShare;
|
||||||
private System.Windows.Forms.ComboBox cbBoxShareAccessLevel;
|
private System.Windows.Forms.ComboBox cbBoxShareAccessLevel;
|
||||||
|
@ -5696,5 +5693,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.Label lblYouTubePermissionsTip;
|
private System.Windows.Forms.Label lblYouTubePermissionsTip;
|
||||||
private OAuthLoopbackControl oauth2YouTube;
|
private OAuthLoopbackControl oauth2YouTube;
|
||||||
private OAuthLoopbackControl oauth2GooglePhotos;
|
private OAuthLoopbackControl oauth2GooglePhotos;
|
||||||
|
private OAuthLoopbackControl oauth2GoogleDrive;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -386,6 +386,16 @@ private void LoadFileUploaderSettings()
|
||||||
|
|
||||||
#region Google Drive
|
#region Google Drive
|
||||||
|
|
||||||
|
if (OAuth2Info.CheckOAuth(Config.GoogleDriveOAuth2Info))
|
||||||
|
{
|
||||||
|
oauth2GoogleDrive.Connected = true;
|
||||||
|
oauth2GoogleDrive.UserInfo = Config.GoogleDriveUserInfo;
|
||||||
|
btnGoogleDriveRefreshFolders.Enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
cbGoogleDriveIsPublic.Checked = Config.GoogleDriveIsPublic;
|
||||||
|
cbGoogleDriveDirectLink.Checked = Config.GoogleDriveDirectLink;
|
||||||
|
|
||||||
cbGoogleDriveSharedDrive.Items.Clear();
|
cbGoogleDriveSharedDrive.Items.Clear();
|
||||||
cbGoogleDriveSharedDrive.Items.Add(GoogleDrive.MyDrive);
|
cbGoogleDriveSharedDrive.Items.Add(GoogleDrive.MyDrive);
|
||||||
if (Config.GoogleDriveSelectedDrive?.id != GoogleDrive.MyDrive.id)
|
if (Config.GoogleDriveSelectedDrive?.id != GoogleDrive.MyDrive.id)
|
||||||
|
@ -393,14 +403,6 @@ private void LoadFileUploaderSettings()
|
||||||
cbGoogleDriveSharedDrive.Items.Add(Config.GoogleDriveSelectedDrive);
|
cbGoogleDriveSharedDrive.Items.Add(Config.GoogleDriveSelectedDrive);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OAuth2Info.CheckOAuth(Config.GoogleDriveOAuth2Info))
|
|
||||||
{
|
|
||||||
oauth2GoogleDrive.Status = OAuthLoginStatus.LoginSuccessful;
|
|
||||||
btnGoogleDriveRefreshFolders.Enabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
cbGoogleDriveIsPublic.Checked = Config.GoogleDriveIsPublic;
|
|
||||||
cbGoogleDriveDirectLink.Checked = Config.GoogleDriveDirectLink;
|
|
||||||
cbGoogleDriveUseFolder.Checked = Config.GoogleDriveUseFolder;
|
cbGoogleDriveUseFolder.Checked = Config.GoogleDriveUseFolder;
|
||||||
txtGoogleDriveFolderID.Enabled = Config.GoogleDriveUseFolder;
|
txtGoogleDriveFolderID.Enabled = Config.GoogleDriveUseFolder;
|
||||||
txtGoogleDriveFolderID.Text = Config.GoogleDriveFolderID;
|
txtGoogleDriveFolderID.Text = Config.GoogleDriveFolderID;
|
||||||
|
@ -1707,25 +1709,28 @@ private void tvOneDrive_AfterExpand(object sender, TreeViewEventArgs e)
|
||||||
|
|
||||||
#region Google Drive
|
#region Google Drive
|
||||||
|
|
||||||
private void oauth2GoogleDrive_OpenButtonClicked()
|
private void oauth2GoogleDrive_ConnectButtonClicked()
|
||||||
{
|
{
|
||||||
OAuth2Info oauth = new OAuth2Info(APIKeys.GoogleClientID, APIKeys.GoogleClientSecret);
|
OAuth2Info oauth = new OAuth2Info(APIKeys.GoogleClientID, APIKeys.GoogleClientSecret);
|
||||||
Config.GoogleDriveOAuth2Info = OAuth2Open(new GoogleDrive(oauth));
|
IOAuth2Loopback oauthLoopback = new GoogleDrive(oauth).OAuth2;
|
||||||
|
|
||||||
|
using (OAuthListenerForm form = new OAuthListenerForm(oauthLoopback))
|
||||||
|
{
|
||||||
|
form.ShowDialog();
|
||||||
|
Config.GoogleDriveOAuth2Info = form.OAuth2Info;
|
||||||
|
Config.GoogleDriveUserInfo = form.UserInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
oauth2GoogleDrive.Connected = OAuth2Info.CheckOAuth(Config.GoogleDriveOAuth2Info);
|
||||||
|
oauth2GoogleDrive.UserInfo = Config.GoogleDriveUserInfo;
|
||||||
|
btnGoogleDriveRefreshFolders.Enabled = oauth2GoogleDrive.Connected;
|
||||||
|
this.ForceActivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void oauth2GoogleDrive_CompleteButtonClicked(string code)
|
private void oauth2GoogleDrive_DisconnectButtonClicked()
|
||||||
{
|
|
||||||
btnGoogleDriveRefreshFolders.Enabled = OAuth2Complete(new GoogleDrive(Config.GoogleDriveOAuth2Info), code, oauth2GoogleDrive);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void oauth2GoogleDrive_RefreshButtonClicked()
|
|
||||||
{
|
|
||||||
btnGoogleDriveRefreshFolders.Enabled = OAuth2Refresh(new GoogleDrive(Config.GoogleDriveOAuth2Info), oauth2GoogleDrive);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void oauth2GoogleDrive_ClearButtonClicked()
|
|
||||||
{
|
{
|
||||||
Config.GoogleDriveOAuth2Info = null;
|
Config.GoogleDriveOAuth2Info = null;
|
||||||
|
Config.GoogleDriveUserInfo = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cbGoogleDriveIsPublic_CheckedChanged(object sender, EventArgs e)
|
private void cbGoogleDriveIsPublic_CheckedChanged(object sender, EventArgs e)
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -195,6 +195,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
|
||||||
#region Google Drive
|
#region Google Drive
|
||||||
|
|
||||||
public OAuth2Info GoogleDriveOAuth2Info { get; set; } = null;
|
public OAuth2Info GoogleDriveOAuth2Info { get; set; } = null;
|
||||||
|
public OAuthUserInfo GoogleDriveUserInfo { get; set; } = null;
|
||||||
public bool GoogleDriveIsPublic { get; set; } = true;
|
public bool GoogleDriveIsPublic { get; set; } = true;
|
||||||
public bool GoogleDriveDirectLink { get; set; } = false;
|
public bool GoogleDriveDirectLink { get; set; } = false;
|
||||||
public bool GoogleDriveUseFolder { get; set; } = false;
|
public bool GoogleDriveUseFolder { get; set; } = false;
|
||||||
|
|
Loading…
Reference in a new issue