mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-05 06:30:36 +12:00
Added Google Drive public upload setting
This commit is contained in:
parent
ed42f4fb66
commit
424e109739
|
@ -727,7 +727,10 @@ public UploadResult UploadFile(Stream stream, string fileName)
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case FileDestination.GoogleDrive:
|
case FileDestination.GoogleDrive:
|
||||||
fileUploader = new GoogleDrive(Program.UploadersConfig.GoogleDriveOAuth2Info);
|
fileUploader = new GoogleDrive(Program.UploadersConfig.GoogleDriveOAuth2Info)
|
||||||
|
{
|
||||||
|
IsPublic = Program.UploadersConfig.GoogleDriveIsPublic
|
||||||
|
};
|
||||||
break;
|
break;
|
||||||
case FileDestination.RapidShare:
|
case FileDestination.RapidShare:
|
||||||
fileUploader = new RapidShare(Program.UploadersConfig.RapidShareUsername, Program.UploadersConfig.RapidSharePassword,
|
fileUploader = new RapidShare(Program.UploadersConfig.RapidShareUsername, Program.UploadersConfig.RapidSharePassword,
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace UploadersLib.FileUploaders
|
||||||
public sealed class GoogleDrive : FileUploader, IOAuth2
|
public sealed class GoogleDrive : FileUploader, IOAuth2
|
||||||
{
|
{
|
||||||
public OAuth2Info AuthInfo { get; set; }
|
public OAuth2Info AuthInfo { get; set; }
|
||||||
|
public bool IsPublic { get; set; }
|
||||||
|
|
||||||
public GoogleDrive(OAuth2Info oauth)
|
public GoogleDrive(OAuth2Info oauth)
|
||||||
{
|
{
|
||||||
|
@ -122,6 +123,24 @@ public bool CheckAuthorization()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetPermissions(string fileID, GoogleDrivePermissionRole role, GoogleDrivePermissionType type, string value, bool withLink)
|
||||||
|
{
|
||||||
|
NameValueCollection headers = new NameValueCollection();
|
||||||
|
headers.Add("Authorization", "Bearer " + AuthInfo.Token.access_token);
|
||||||
|
|
||||||
|
string url = string.Format("https://www.googleapis.com/drive/v2/files/{0}/permissions", fileID);
|
||||||
|
|
||||||
|
string json = JsonConvert.SerializeObject(new
|
||||||
|
{
|
||||||
|
role = role.ToString(),
|
||||||
|
type = type.ToString(),
|
||||||
|
value = value,
|
||||||
|
withLink = withLink.ToString()
|
||||||
|
});
|
||||||
|
|
||||||
|
string response = SendPostRequestJSON(url, json, headers: headers);
|
||||||
|
}
|
||||||
|
|
||||||
public override UploadResult Upload(Stream stream, string fileName)
|
public override UploadResult Upload(Stream stream, string fileName)
|
||||||
{
|
{
|
||||||
if (!CheckAuthorization())
|
if (!CheckAuthorization())
|
||||||
|
@ -132,7 +151,10 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
NameValueCollection headers = new NameValueCollection();
|
NameValueCollection headers = new NameValueCollection();
|
||||||
headers.Add("Authorization", "Bearer " + AuthInfo.Token.access_token);
|
headers.Add("Authorization", "Bearer " + AuthInfo.Token.access_token);
|
||||||
|
|
||||||
UploadResult result = UploadData(stream, "https://www.googleapis.com/upload/drive/v2/files", fileName, "file", null, null, headers);
|
Dictionary<string, string> args = new Dictionary<string, string>();
|
||||||
|
args.Add("title", fileName);
|
||||||
|
|
||||||
|
UploadResult result = UploadData(stream, "https://www.googleapis.com/upload/drive/v2/files", fileName, "file", args, headers: headers);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(result.Response))
|
if (!string.IsNullOrEmpty(result.Response))
|
||||||
{
|
{
|
||||||
|
@ -140,6 +162,12 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
|
|
||||||
if (upload != null)
|
if (upload != null)
|
||||||
{
|
{
|
||||||
|
if (IsPublic)
|
||||||
|
{
|
||||||
|
AllowReportProgress = false;
|
||||||
|
SetPermissions(upload.id, GoogleDrivePermissionRole.reader, GoogleDrivePermissionType.anyone, "", true);
|
||||||
|
}
|
||||||
|
|
||||||
result.URL = upload.alternateLink;
|
result.URL = upload.alternateLink;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,5 +180,15 @@ public class GoogleDriveUpload
|
||||||
public string id { get; set; }
|
public string id { get; set; }
|
||||||
public string alternateLink { get; set; }
|
public string alternateLink { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum GoogleDrivePermissionRole
|
||||||
|
{
|
||||||
|
owner, reader, writer
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GoogleDrivePermissionType
|
||||||
|
{
|
||||||
|
user, group, domain, anyone
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
421
UploadersLib/GUI/UploadersConfigForm.Designer.cs
generated
421
UploadersLib/GUI/UploadersConfigForm.Designer.cs
generated
|
@ -34,6 +34,7 @@ private void InitializeComponent()
|
||||||
this.tpImageUploaders = new System.Windows.Forms.TabPage();
|
this.tpImageUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.tcImageUploaders = new System.Windows.Forms.TabControl();
|
this.tcImageUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.tpImgur = new System.Windows.Forms.TabPage();
|
this.tpImgur = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2Imgur = new UploadersLib.GUI.OAuth2Control();
|
||||||
this.txtImgurAlbumID = new System.Windows.Forms.TextBox();
|
this.txtImgurAlbumID = new System.Windows.Forms.TextBox();
|
||||||
this.lblImgurAlbumID = new System.Windows.Forms.Label();
|
this.lblImgurAlbumID = new System.Windows.Forms.Label();
|
||||||
this.lvImgurAlbumList = new System.Windows.Forms.ListView();
|
this.lvImgurAlbumList = new System.Windows.Forms.ListView();
|
||||||
|
@ -43,7 +44,9 @@ private void InitializeComponent()
|
||||||
this.btnImgurRefreshAlbumList = new System.Windows.Forms.Button();
|
this.btnImgurRefreshAlbumList = new System.Windows.Forms.Button();
|
||||||
this.cbImgurThumbnailType = new System.Windows.Forms.ComboBox();
|
this.cbImgurThumbnailType = new System.Windows.Forms.ComboBox();
|
||||||
this.lblImgurThumbnailType = new System.Windows.Forms.Label();
|
this.lblImgurThumbnailType = new System.Windows.Forms.Label();
|
||||||
|
this.atcImgurAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
this.tpImageShack = new System.Windows.Forms.TabPage();
|
this.tpImageShack = new System.Windows.Forms.TabPage();
|
||||||
|
this.atcImageShackAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
this.btnImageShackLogin = new System.Windows.Forms.Button();
|
this.btnImageShackLogin = new System.Windows.Forms.Button();
|
||||||
this.btnImageShackOpenPublicProfile = new System.Windows.Forms.Button();
|
this.btnImageShackOpenPublicProfile = new System.Windows.Forms.Button();
|
||||||
this.cbImageShackIsPublic = new System.Windows.Forms.CheckBox();
|
this.cbImageShackIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -53,6 +56,7 @@ private void InitializeComponent()
|
||||||
this.txtImageShackPassword = new System.Windows.Forms.TextBox();
|
this.txtImageShackPassword = new System.Windows.Forms.TextBox();
|
||||||
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
||||||
this.tpTinyPic = new System.Windows.Forms.TabPage();
|
this.tpTinyPic = new System.Windows.Forms.TabPage();
|
||||||
|
this.atcTinyPicAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
this.btnTinyPicLogin = new System.Windows.Forms.Button();
|
this.btnTinyPicLogin = new System.Windows.Forms.Button();
|
||||||
this.txtTinyPicPassword = new System.Windows.Forms.TextBox();
|
this.txtTinyPicPassword = new System.Windows.Forms.TextBox();
|
||||||
this.lblTinyPicPassword = new System.Windows.Forms.Label();
|
this.lblTinyPicPassword = new System.Windows.Forms.Label();
|
||||||
|
@ -105,6 +109,7 @@ private void InitializeComponent()
|
||||||
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.btnPicasaRefreshAlbumList = new System.Windows.Forms.Button();
|
this.btnPicasaRefreshAlbumList = new System.Windows.Forms.Button();
|
||||||
|
this.oauth2Picasa = new UploadersLib.GUI.OAuth2Control();
|
||||||
this.tpTextUploaders = new System.Windows.Forms.TabPage();
|
this.tpTextUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.tcTextUploaders = new System.Windows.Forms.TabControl();
|
this.tcTextUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.tpPastebin = new System.Windows.Forms.TabPage();
|
this.tpPastebin = new System.Windows.Forms.TabPage();
|
||||||
|
@ -115,6 +120,8 @@ private void InitializeComponent()
|
||||||
this.txtPaste_eeUserAPIKey = new System.Windows.Forms.TextBox();
|
this.txtPaste_eeUserAPIKey = new System.Windows.Forms.TextBox();
|
||||||
this.tpGist = new System.Windows.Forms.TabPage();
|
this.tpGist = new System.Windows.Forms.TabPage();
|
||||||
this.chkGistPublishPublic = new System.Windows.Forms.CheckBox();
|
this.chkGistPublishPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oAuth2Gist = new UploadersLib.GUI.OAuth2Control();
|
||||||
|
this.atcGistAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
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();
|
||||||
|
@ -139,6 +146,7 @@ private void InitializeComponent()
|
||||||
this.btnFtpClient = new System.Windows.Forms.Button();
|
this.btnFtpClient = new System.Windows.Forms.Button();
|
||||||
this.btnFTPExport = new System.Windows.Forms.Button();
|
this.btnFTPExport = new System.Windows.Forms.Button();
|
||||||
this.btnFTPImport = new System.Windows.Forms.Button();
|
this.btnFTPImport = new System.Windows.Forms.Button();
|
||||||
|
this.ucFTPAccounts = new UploadersLib.AccountsControl();
|
||||||
this.gbFtpSettings = new System.Windows.Forms.GroupBox();
|
this.gbFtpSettings = new System.Windows.Forms.GroupBox();
|
||||||
this.lblFtpFiles = new System.Windows.Forms.Label();
|
this.lblFtpFiles = new System.Windows.Forms.Label();
|
||||||
this.lblFtpText = new System.Windows.Forms.Label();
|
this.lblFtpText = new System.Windows.Forms.Label();
|
||||||
|
@ -147,6 +155,7 @@ private void InitializeComponent()
|
||||||
this.cboFtpText = new System.Windows.Forms.ComboBox();
|
this.cboFtpText = new System.Windows.Forms.ComboBox();
|
||||||
this.cboFtpImages = new System.Windows.Forms.ComboBox();
|
this.cboFtpImages = new System.Windows.Forms.ComboBox();
|
||||||
this.tpMega = new System.Windows.Forms.TabPage();
|
this.tpMega = new System.Windows.Forms.TabPage();
|
||||||
|
this.atcMegaAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
this.lblMegaStatus = new System.Windows.Forms.Label();
|
this.lblMegaStatus = new System.Windows.Forms.Label();
|
||||||
this.pnlMegaLogin = new System.Windows.Forms.Panel();
|
this.pnlMegaLogin = new System.Windows.Forms.Panel();
|
||||||
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
||||||
|
@ -181,6 +190,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 UploadersLib.GUI.AccountTypeControl();
|
||||||
this.tpGe_tt = new System.Windows.Forms.TabPage();
|
this.tpGe_tt = new System.Windows.Forms.TabPage();
|
||||||
this.lblGe_ttAccessToken = new System.Windows.Forms.Label();
|
this.lblGe_ttAccessToken = new System.Windows.Forms.Label();
|
||||||
this.lblGe_ttPassword = new System.Windows.Forms.Label();
|
this.lblGe_ttPassword = new System.Windows.Forms.Label();
|
||||||
|
@ -201,7 +211,9 @@ 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 UploadersLib.GUI.OAuth2Control();
|
||||||
this.tpGoogleDrive = new System.Windows.Forms.TabPage();
|
this.tpGoogleDrive = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2GoogleDrive = new UploadersLib.GUI.OAuth2Control();
|
||||||
this.tpMinus = new System.Windows.Forms.TabPage();
|
this.tpMinus = new System.Windows.Forms.TabPage();
|
||||||
this.gbMinusUserPass = new System.Windows.Forms.GroupBox();
|
this.gbMinusUserPass = new System.Windows.Forms.GroupBox();
|
||||||
this.btnAuthRefresh = new System.Windows.Forms.Button();
|
this.btnAuthRefresh = new System.Windows.Forms.Button();
|
||||||
|
@ -236,6 +248,7 @@ private void InitializeComponent()
|
||||||
this.txtEmailDefaultSubject = new System.Windows.Forms.TextBox();
|
this.txtEmailDefaultSubject = new System.Windows.Forms.TextBox();
|
||||||
this.tpSharedFolder = new System.Windows.Forms.TabPage();
|
this.tpSharedFolder = new System.Windows.Forms.TabPage();
|
||||||
this.tlpSharedFolders = new System.Windows.Forms.TableLayoutPanel();
|
this.tlpSharedFolders = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.ucLocalhostAccounts = new UploadersLib.AccountsControl();
|
||||||
this.gbSharedFolder = new System.Windows.Forms.GroupBox();
|
this.gbSharedFolder = new System.Windows.Forms.GroupBox();
|
||||||
this.lblSharedFolderFiles = new System.Windows.Forms.Label();
|
this.lblSharedFolderFiles = new System.Windows.Forms.Label();
|
||||||
this.lblSharedFolderText = new System.Windows.Forms.Label();
|
this.lblSharedFolderText = new System.Windows.Forms.Label();
|
||||||
|
@ -245,8 +258,11 @@ private void InitializeComponent()
|
||||||
this.cboSharedFolderImages = new System.Windows.Forms.ComboBox();
|
this.cboSharedFolderImages = new System.Windows.Forms.ComboBox();
|
||||||
this.tpURLShorteners = new System.Windows.Forms.TabPage();
|
this.tpURLShorteners = new System.Windows.Forms.TabPage();
|
||||||
this.tcURLShorteners = new System.Windows.Forms.TabControl();
|
this.tcURLShorteners = new System.Windows.Forms.TabControl();
|
||||||
this.tpGoogleURLShortener = new System.Windows.Forms.TabPage();
|
|
||||||
this.tpBitly = new System.Windows.Forms.TabPage();
|
this.tpBitly = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2Bitly = new UploadersLib.GUI.OAuth2Control();
|
||||||
|
this.tpGoogleURLShortener = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2GoogleURLShortener = new UploadersLib.GUI.OAuth2Control();
|
||||||
|
this.atcGoogleURLShortenerAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
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();
|
||||||
|
@ -261,6 +277,7 @@ private void InitializeComponent()
|
||||||
this.tcSocialNetworkingServices = new System.Windows.Forms.TabControl();
|
this.tcSocialNetworkingServices = new System.Windows.Forms.TabControl();
|
||||||
this.tpTwitter = new System.Windows.Forms.TabPage();
|
this.tpTwitter = new System.Windows.Forms.TabPage();
|
||||||
this.btnTwitterLogin = new System.Windows.Forms.Button();
|
this.btnTwitterLogin = new System.Windows.Forms.Button();
|
||||||
|
this.ucTwitterAccounts = new UploadersLib.AccountsControl();
|
||||||
this.tpCustomUploaders = new System.Windows.Forms.TabPage();
|
this.tpCustomUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.btnCustomUploaderHelp = new System.Windows.Forms.Button();
|
this.btnCustomUploaderHelp = new System.Windows.Forms.Button();
|
||||||
this.lblCustomUploaderImageUploader = new System.Windows.Forms.Label();
|
this.lblCustomUploaderImageUploader = new System.Windows.Forms.Label();
|
||||||
|
@ -319,24 +336,8 @@ private void InitializeComponent()
|
||||||
this.txtCustomUploaderArgName = new System.Windows.Forms.TextBox();
|
this.txtCustomUploaderArgName = new System.Windows.Forms.TextBox();
|
||||||
this.txtRapidSharePremiumUserName = new System.Windows.Forms.TextBox();
|
this.txtRapidSharePremiumUserName = new System.Windows.Forms.TextBox();
|
||||||
this.ttHelpTip = new System.Windows.Forms.ToolTip(this.components);
|
this.ttHelpTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.oauth2Imgur = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.atcImgurAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.atcImageShackAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.atcTinyPicAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.oauth2Picasa = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.oAuth2Gist = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.atcGistAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.ucFTPAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.atcMegaAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.atcSendSpaceAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.oAuthJira = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.oauth2GoogleDrive = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.ucLocalhostAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.oauth2GoogleURLShortener = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.atcGoogleURLShortenerAccountType = new UploadersLib.GUI.AccountTypeControl();
|
|
||||||
this.oauth2Bitly = new UploadersLib.GUI.OAuth2Control();
|
|
||||||
this.ucTwitterAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.actRapidShareAccountType = new UploadersLib.GUI.AccountTypeControl();
|
this.actRapidShareAccountType = new UploadersLib.GUI.AccountTypeControl();
|
||||||
|
this.cbGoogleDriveIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
this.tcUploaders.SuspendLayout();
|
this.tcUploaders.SuspendLayout();
|
||||||
this.tpImageUploaders.SuspendLayout();
|
this.tpImageUploaders.SuspendLayout();
|
||||||
this.tcImageUploaders.SuspendLayout();
|
this.tcImageUploaders.SuspendLayout();
|
||||||
|
@ -386,8 +387,8 @@ private void InitializeComponent()
|
||||||
this.gbSharedFolder.SuspendLayout();
|
this.gbSharedFolder.SuspendLayout();
|
||||||
this.tpURLShorteners.SuspendLayout();
|
this.tpURLShorteners.SuspendLayout();
|
||||||
this.tcURLShorteners.SuspendLayout();
|
this.tcURLShorteners.SuspendLayout();
|
||||||
this.tpGoogleURLShortener.SuspendLayout();
|
|
||||||
this.tpBitly.SuspendLayout();
|
this.tpBitly.SuspendLayout();
|
||||||
|
this.tpGoogleURLShortener.SuspendLayout();
|
||||||
this.tpYourls.SuspendLayout();
|
this.tpYourls.SuspendLayout();
|
||||||
this.tpSocialNetworkingServices.SuspendLayout();
|
this.tpSocialNetworkingServices.SuspendLayout();
|
||||||
this.tcSocialNetworkingServices.SuspendLayout();
|
this.tcSocialNetworkingServices.SuspendLayout();
|
||||||
|
@ -461,6 +462,18 @@ private void InitializeComponent()
|
||||||
this.tpImgur.Text = "Imgur";
|
this.tpImgur.Text = "Imgur";
|
||||||
this.tpImgur.UseVisualStyleBackColor = true;
|
this.tpImgur.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// oauth2Imgur
|
||||||
|
//
|
||||||
|
this.oauth2Imgur.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Imgur.LoginStatus = false;
|
||||||
|
this.oauth2Imgur.Name = "oauth2Imgur";
|
||||||
|
this.oauth2Imgur.Size = new System.Drawing.Size(328, 207);
|
||||||
|
this.oauth2Imgur.Status = "Status: Login required.";
|
||||||
|
this.oauth2Imgur.TabIndex = 6;
|
||||||
|
this.oauth2Imgur.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
||||||
|
this.oauth2Imgur.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
||||||
|
this.oauth2Imgur.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// txtImgurAlbumID
|
// txtImgurAlbumID
|
||||||
//
|
//
|
||||||
this.txtImgurAlbumID.Location = new System.Drawing.Point(592, 28);
|
this.txtImgurAlbumID.Location = new System.Drawing.Point(592, 28);
|
||||||
|
@ -539,6 +552,15 @@ private void InitializeComponent()
|
||||||
this.lblImgurThumbnailType.TabIndex = 1;
|
this.lblImgurThumbnailType.TabIndex = 1;
|
||||||
this.lblImgurThumbnailType.Text = "Thumbnail type:";
|
this.lblImgurThumbnailType.Text = "Thumbnail type:";
|
||||||
//
|
//
|
||||||
|
// atcImgurAccountType
|
||||||
|
//
|
||||||
|
this.atcImgurAccountType.Location = new System.Drawing.Point(8, 232);
|
||||||
|
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
||||||
|
this.atcImgurAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcImgurAccountType.Size = new System.Drawing.Size(272, 29);
|
||||||
|
this.atcImgurAccountType.TabIndex = 0;
|
||||||
|
this.atcImgurAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpImageShack
|
// tpImageShack
|
||||||
//
|
//
|
||||||
this.tpImageShack.Controls.Add(this.atcImageShackAccountType);
|
this.tpImageShack.Controls.Add(this.atcImageShackAccountType);
|
||||||
|
@ -558,6 +580,15 @@ private void InitializeComponent()
|
||||||
this.tpImageShack.Text = "ImageShack";
|
this.tpImageShack.Text = "ImageShack";
|
||||||
this.tpImageShack.UseVisualStyleBackColor = true;
|
this.tpImageShack.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// atcImageShackAccountType
|
||||||
|
//
|
||||||
|
this.atcImageShackAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcImageShackAccountType.Name = "atcImageShackAccountType";
|
||||||
|
this.atcImageShackAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcImageShackAccountType.Size = new System.Drawing.Size(272, 29);
|
||||||
|
this.atcImageShackAccountType.TabIndex = 10;
|
||||||
|
this.atcImageShackAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImageShackAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// btnImageShackLogin
|
// btnImageShackLogin
|
||||||
//
|
//
|
||||||
this.btnImageShackLogin.Location = new System.Drawing.Point(296, 82);
|
this.btnImageShackLogin.Location = new System.Drawing.Point(296, 82);
|
||||||
|
@ -651,6 +682,15 @@ private void InitializeComponent()
|
||||||
this.tpTinyPic.Text = "TinyPic";
|
this.tpTinyPic.Text = "TinyPic";
|
||||||
this.tpTinyPic.UseVisualStyleBackColor = true;
|
this.tpTinyPic.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// atcTinyPicAccountType
|
||||||
|
//
|
||||||
|
this.atcTinyPicAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
||||||
|
this.atcTinyPicAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcTinyPicAccountType.Size = new System.Drawing.Size(272, 29);
|
||||||
|
this.atcTinyPicAccountType.TabIndex = 0;
|
||||||
|
this.atcTinyPicAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// btnTinyPicLogin
|
// btnTinyPicLogin
|
||||||
//
|
//
|
||||||
this.btnTinyPicLogin.Location = new System.Drawing.Point(296, 82);
|
this.btnTinyPicLogin.Location = new System.Drawing.Point(296, 82);
|
||||||
|
@ -1182,6 +1222,18 @@ private void InitializeComponent()
|
||||||
this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true;
|
this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true;
|
||||||
this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click);
|
this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click);
|
||||||
//
|
//
|
||||||
|
// oauth2Picasa
|
||||||
|
//
|
||||||
|
this.oauth2Picasa.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Picasa.LoginStatus = false;
|
||||||
|
this.oauth2Picasa.Name = "oauth2Picasa";
|
||||||
|
this.oauth2Picasa.Size = new System.Drawing.Size(328, 207);
|
||||||
|
this.oauth2Picasa.Status = "Login required.";
|
||||||
|
this.oauth2Picasa.TabIndex = 0;
|
||||||
|
this.oauth2Picasa.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
||||||
|
this.oauth2Picasa.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
||||||
|
this.oauth2Picasa.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpTextUploaders
|
// tpTextUploaders
|
||||||
//
|
//
|
||||||
this.tpTextUploaders.Controls.Add(this.tcTextUploaders);
|
this.tpTextUploaders.Controls.Add(this.tcTextUploaders);
|
||||||
|
@ -1289,6 +1341,28 @@ private void InitializeComponent()
|
||||||
this.chkGistPublishPublic.UseVisualStyleBackColor = true;
|
this.chkGistPublishPublic.UseVisualStyleBackColor = true;
|
||||||
this.chkGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged);
|
this.chkGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oAuth2Gist
|
||||||
|
//
|
||||||
|
this.oAuth2Gist.Enabled = false;
|
||||||
|
this.oAuth2Gist.IsRefreshable = false;
|
||||||
|
this.oAuth2Gist.Location = new System.Drawing.Point(16, 51);
|
||||||
|
this.oAuth2Gist.LoginStatus = false;
|
||||||
|
this.oAuth2Gist.Name = "oAuth2Gist";
|
||||||
|
this.oAuth2Gist.Size = new System.Drawing.Size(328, 173);
|
||||||
|
this.oAuth2Gist.Status = "Status: Login required.";
|
||||||
|
this.oAuth2Gist.TabIndex = 16;
|
||||||
|
this.oAuth2Gist.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
||||||
|
this.oAuth2Gist.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
||||||
|
//
|
||||||
|
// atcGistAccountType
|
||||||
|
//
|
||||||
|
this.atcGistAccountType.Location = new System.Drawing.Point(15, 16);
|
||||||
|
this.atcGistAccountType.Name = "atcGistAccountType";
|
||||||
|
this.atcGistAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcGistAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcGistAccountType.TabIndex = 15;
|
||||||
|
this.atcGistAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpUpaste
|
// tpUpaste
|
||||||
//
|
//
|
||||||
this.tpUpaste.Controls.Add(this.cbUpasteIsPublic);
|
this.tpUpaste.Controls.Add(this.cbUpasteIsPublic);
|
||||||
|
@ -1346,13 +1420,13 @@ private void InitializeComponent()
|
||||||
this.tcFileUploaders.Controls.Add(this.tpDropbox);
|
this.tcFileUploaders.Controls.Add(this.tpDropbox);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpFTP);
|
this.tcFileUploaders.Controls.Add(this.tpFTP);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpMega);
|
this.tcFileUploaders.Controls.Add(this.tpMega);
|
||||||
|
this.tcFileUploaders.Controls.Add(this.tpGoogleDrive);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpBox);
|
this.tcFileUploaders.Controls.Add(this.tpBox);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpRapidShare);
|
this.tcFileUploaders.Controls.Add(this.tpRapidShare);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpSendSpace);
|
this.tcFileUploaders.Controls.Add(this.tpSendSpace);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpGe_tt);
|
this.tcFileUploaders.Controls.Add(this.tpGe_tt);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpHostr);
|
this.tcFileUploaders.Controls.Add(this.tpHostr);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpJira);
|
this.tcFileUploaders.Controls.Add(this.tpJira);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpGoogleDrive);
|
|
||||||
this.tcFileUploaders.Controls.Add(this.tpMinus);
|
this.tcFileUploaders.Controls.Add(this.tpMinus);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpEmail);
|
this.tcFileUploaders.Controls.Add(this.tpEmail);
|
||||||
this.tcFileUploaders.Controls.Add(this.tpSharedFolder);
|
this.tcFileUploaders.Controls.Add(this.tpSharedFolder);
|
||||||
|
@ -1571,6 +1645,15 @@ private void InitializeComponent()
|
||||||
this.btnFTPImport.UseVisualStyleBackColor = true;
|
this.btnFTPImport.UseVisualStyleBackColor = true;
|
||||||
this.btnFTPImport.Click += new System.EventHandler(this.btnFTPImport_Click);
|
this.btnFTPImport.Click += new System.EventHandler(this.btnFTPImport_Click);
|
||||||
//
|
//
|
||||||
|
// ucFTPAccounts
|
||||||
|
//
|
||||||
|
this.ucFTPAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.ucFTPAccounts.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.ucFTPAccounts.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.ucFTPAccounts.Name = "ucFTPAccounts";
|
||||||
|
this.ucFTPAccounts.Size = new System.Drawing.Size(792, 345);
|
||||||
|
this.ucFTPAccounts.TabIndex = 0;
|
||||||
|
//
|
||||||
// gbFtpSettings
|
// gbFtpSettings
|
||||||
//
|
//
|
||||||
this.gbFtpSettings.Controls.Add(this.lblFtpFiles);
|
this.gbFtpSettings.Controls.Add(this.lblFtpFiles);
|
||||||
|
@ -1657,6 +1740,14 @@ private void InitializeComponent()
|
||||||
this.tpMega.Text = "Mega";
|
this.tpMega.Text = "Mega";
|
||||||
this.tpMega.UseVisualStyleBackColor = true;
|
this.tpMega.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// atcMegaAccountType
|
||||||
|
//
|
||||||
|
this.atcMegaAccountType.Location = new System.Drawing.Point(16, 34);
|
||||||
|
this.atcMegaAccountType.Name = "atcMegaAccountType";
|
||||||
|
this.atcMegaAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcMegaAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcMegaAccountType.TabIndex = 14;
|
||||||
|
//
|
||||||
// lblMegaStatus
|
// lblMegaStatus
|
||||||
//
|
//
|
||||||
this.lblMegaStatus.AutoSize = true;
|
this.lblMegaStatus.AutoSize = true;
|
||||||
|
@ -1996,6 +2087,15 @@ private void InitializeComponent()
|
||||||
this.txtSendSpaceUserName.TabIndex = 3;
|
this.txtSendSpaceUserName.TabIndex = 3;
|
||||||
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
||||||
//
|
//
|
||||||
|
// atcSendSpaceAccountType
|
||||||
|
//
|
||||||
|
this.atcSendSpaceAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
||||||
|
this.atcSendSpaceAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcSendSpaceAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcSendSpaceAccountType.TabIndex = 0;
|
||||||
|
this.atcSendSpaceAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpGe_tt
|
// tpGe_tt
|
||||||
//
|
//
|
||||||
this.tpGe_tt.Controls.Add(this.lblGe_ttAccessToken);
|
this.tpGe_tt.Controls.Add(this.lblGe_ttAccessToken);
|
||||||
|
@ -2198,8 +2298,21 @@ private void InitializeComponent()
|
||||||
this.lblJiraHost.TabIndex = 0;
|
this.lblJiraHost.TabIndex = 0;
|
||||||
this.lblJiraHost.Text = "Jira host: ";
|
this.lblJiraHost.Text = "Jira host: ";
|
||||||
//
|
//
|
||||||
|
// oAuthJira
|
||||||
|
//
|
||||||
|
this.oAuthJira.Location = new System.Drawing.Point(473, 13);
|
||||||
|
this.oAuthJira.LoginStatus = false;
|
||||||
|
this.oAuthJira.Name = "oAuthJira";
|
||||||
|
this.oAuthJira.Size = new System.Drawing.Size(328, 207);
|
||||||
|
this.oAuthJira.Status = "Status: Login required.";
|
||||||
|
this.oAuthJira.TabIndex = 1;
|
||||||
|
this.oAuthJira.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
||||||
|
this.oAuthJira.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
||||||
|
this.oAuthJira.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpGoogleDrive
|
// tpGoogleDrive
|
||||||
//
|
//
|
||||||
|
this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveIsPublic);
|
||||||
this.tpGoogleDrive.Controls.Add(this.oauth2GoogleDrive);
|
this.tpGoogleDrive.Controls.Add(this.oauth2GoogleDrive);
|
||||||
this.tpGoogleDrive.Location = new System.Drawing.Point(4, 22);
|
this.tpGoogleDrive.Location = new System.Drawing.Point(4, 22);
|
||||||
this.tpGoogleDrive.Name = "tpGoogleDrive";
|
this.tpGoogleDrive.Name = "tpGoogleDrive";
|
||||||
|
@ -2209,6 +2322,18 @@ private void InitializeComponent()
|
||||||
this.tpGoogleDrive.Text = "Google Drive";
|
this.tpGoogleDrive.Text = "Google Drive";
|
||||||
this.tpGoogleDrive.UseVisualStyleBackColor = true;
|
this.tpGoogleDrive.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// oauth2GoogleDrive
|
||||||
|
//
|
||||||
|
this.oauth2GoogleDrive.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2GoogleDrive.LoginStatus = false;
|
||||||
|
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
||||||
|
this.oauth2GoogleDrive.Size = new System.Drawing.Size(328, 207);
|
||||||
|
this.oauth2GoogleDrive.Status = "Status: Login required.";
|
||||||
|
this.oauth2GoogleDrive.TabIndex = 0;
|
||||||
|
this.oauth2GoogleDrive.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
||||||
|
this.oauth2GoogleDrive.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
||||||
|
this.oauth2GoogleDrive.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpMinus
|
// tpMinus
|
||||||
//
|
//
|
||||||
this.tpMinus.Controls.Add(this.gbMinusUserPass);
|
this.tpMinus.Controls.Add(this.gbMinusUserPass);
|
||||||
|
@ -2580,6 +2705,15 @@ private void InitializeComponent()
|
||||||
this.tlpSharedFolders.Size = new System.Drawing.Size(798, 469);
|
this.tlpSharedFolders.Size = new System.Drawing.Size(798, 469);
|
||||||
this.tlpSharedFolders.TabIndex = 0;
|
this.tlpSharedFolders.TabIndex = 0;
|
||||||
//
|
//
|
||||||
|
// ucLocalhostAccounts
|
||||||
|
//
|
||||||
|
this.ucLocalhostAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.ucLocalhostAccounts.Location = new System.Drawing.Point(4, 4);
|
||||||
|
this.ucLocalhostAccounts.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.ucLocalhostAccounts.Name = "ucLocalhostAccounts";
|
||||||
|
this.ucLocalhostAccounts.Size = new System.Drawing.Size(790, 343);
|
||||||
|
this.ucLocalhostAccounts.TabIndex = 0;
|
||||||
|
//
|
||||||
// gbSharedFolder
|
// gbSharedFolder
|
||||||
//
|
//
|
||||||
this.gbSharedFolder.Controls.Add(this.lblSharedFolderFiles);
|
this.gbSharedFolder.Controls.Add(this.lblSharedFolderFiles);
|
||||||
|
@ -2676,6 +2810,29 @@ private void InitializeComponent()
|
||||||
this.tcURLShorteners.Size = new System.Drawing.Size(812, 501);
|
this.tcURLShorteners.Size = new System.Drawing.Size(812, 501);
|
||||||
this.tcURLShorteners.TabIndex = 0;
|
this.tcURLShorteners.TabIndex = 0;
|
||||||
//
|
//
|
||||||
|
// tpBitly
|
||||||
|
//
|
||||||
|
this.tpBitly.Controls.Add(this.oauth2Bitly);
|
||||||
|
this.tpBitly.Location = new System.Drawing.Point(4, 22);
|
||||||
|
this.tpBitly.Name = "tpBitly";
|
||||||
|
this.tpBitly.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.tpBitly.Size = new System.Drawing.Size(804, 475);
|
||||||
|
this.tpBitly.TabIndex = 1;
|
||||||
|
this.tpBitly.Text = "bit.ly";
|
||||||
|
this.tpBitly.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// oauth2Bitly
|
||||||
|
//
|
||||||
|
this.oauth2Bitly.IsRefreshable = false;
|
||||||
|
this.oauth2Bitly.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Bitly.LoginStatus = false;
|
||||||
|
this.oauth2Bitly.Name = "oauth2Bitly";
|
||||||
|
this.oauth2Bitly.Size = new System.Drawing.Size(328, 168);
|
||||||
|
this.oauth2Bitly.Status = "Login required.";
|
||||||
|
this.oauth2Bitly.TabIndex = 0;
|
||||||
|
this.oauth2Bitly.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
||||||
|
this.oauth2Bitly.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
||||||
|
//
|
||||||
// tpGoogleURLShortener
|
// tpGoogleURLShortener
|
||||||
//
|
//
|
||||||
this.tpGoogleURLShortener.Controls.Add(this.oauth2GoogleURLShortener);
|
this.tpGoogleURLShortener.Controls.Add(this.oauth2GoogleURLShortener);
|
||||||
|
@ -2688,16 +2845,26 @@ private void InitializeComponent()
|
||||||
this.tpGoogleURLShortener.Text = "Google";
|
this.tpGoogleURLShortener.Text = "Google";
|
||||||
this.tpGoogleURLShortener.UseVisualStyleBackColor = true;
|
this.tpGoogleURLShortener.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// tpBitly
|
// oauth2GoogleURLShortener
|
||||||
//
|
//
|
||||||
this.tpBitly.Controls.Add(this.oauth2Bitly);
|
this.oauth2GoogleURLShortener.Location = new System.Drawing.Point(16, 56);
|
||||||
this.tpBitly.Location = new System.Drawing.Point(4, 22);
|
this.oauth2GoogleURLShortener.LoginStatus = false;
|
||||||
this.tpBitly.Name = "tpBitly";
|
this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener";
|
||||||
this.tpBitly.Padding = new System.Windows.Forms.Padding(3);
|
this.oauth2GoogleURLShortener.Size = new System.Drawing.Size(328, 207);
|
||||||
this.tpBitly.Size = new System.Drawing.Size(804, 475);
|
this.oauth2GoogleURLShortener.Status = "Status: Login required.";
|
||||||
this.tpBitly.TabIndex = 1;
|
this.oauth2GoogleURLShortener.TabIndex = 1;
|
||||||
this.tpBitly.Text = "bit.ly";
|
this.oauth2GoogleURLShortener.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked);
|
||||||
this.tpBitly.UseVisualStyleBackColor = true;
|
this.oauth2GoogleURLShortener.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked);
|
||||||
|
this.oauth2GoogleURLShortener.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked);
|
||||||
|
//
|
||||||
|
// atcGoogleURLShortenerAccountType
|
||||||
|
//
|
||||||
|
this.atcGoogleURLShortenerAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType";
|
||||||
|
this.atcGoogleURLShortenerAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcGoogleURLShortenerAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcGoogleURLShortenerAccountType.TabIndex = 0;
|
||||||
|
this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged);
|
||||||
//
|
//
|
||||||
// tpYourls
|
// tpYourls
|
||||||
//
|
//
|
||||||
|
@ -2839,6 +3006,14 @@ private void InitializeComponent()
|
||||||
this.btnTwitterLogin.UseVisualStyleBackColor = true;
|
this.btnTwitterLogin.UseVisualStyleBackColor = true;
|
||||||
this.btnTwitterLogin.Click += new System.EventHandler(this.btnTwitterLogin_Click);
|
this.btnTwitterLogin.Click += new System.EventHandler(this.btnTwitterLogin_Click);
|
||||||
//
|
//
|
||||||
|
// ucTwitterAccounts
|
||||||
|
//
|
||||||
|
this.ucTwitterAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.ucTwitterAccounts.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.ucTwitterAccounts.Name = "ucTwitterAccounts";
|
||||||
|
this.ucTwitterAccounts.Size = new System.Drawing.Size(798, 469);
|
||||||
|
this.ucTwitterAccounts.TabIndex = 0;
|
||||||
|
//
|
||||||
// tpCustomUploaders
|
// tpCustomUploaders
|
||||||
//
|
//
|
||||||
this.tpCustomUploaders.Controls.Add(this.btnCustomUploaderHelp);
|
this.tpCustomUploaders.Controls.Add(this.btnCustomUploaderHelp);
|
||||||
|
@ -3430,179 +3605,6 @@ private void InitializeComponent()
|
||||||
this.ttHelpTip.UseAnimation = false;
|
this.ttHelpTip.UseAnimation = false;
|
||||||
this.ttHelpTip.UseFading = false;
|
this.ttHelpTip.UseFading = false;
|
||||||
//
|
//
|
||||||
// oauth2Imgur
|
|
||||||
//
|
|
||||||
this.oauth2Imgur.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Imgur.LoginStatus = false;
|
|
||||||
this.oauth2Imgur.Name = "oauth2Imgur";
|
|
||||||
this.oauth2Imgur.Size = new System.Drawing.Size(328, 207);
|
|
||||||
this.oauth2Imgur.Status = "Status: Login required.";
|
|
||||||
this.oauth2Imgur.TabIndex = 6;
|
|
||||||
this.oauth2Imgur.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
|
||||||
this.oauth2Imgur.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
|
||||||
this.oauth2Imgur.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcImgurAccountType
|
|
||||||
//
|
|
||||||
this.atcImgurAccountType.Location = new System.Drawing.Point(8, 232);
|
|
||||||
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
|
||||||
this.atcImgurAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcImgurAccountType.Size = new System.Drawing.Size(272, 29);
|
|
||||||
this.atcImgurAccountType.TabIndex = 0;
|
|
||||||
this.atcImgurAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// atcImageShackAccountType
|
|
||||||
//
|
|
||||||
this.atcImageShackAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcImageShackAccountType.Name = "atcImageShackAccountType";
|
|
||||||
this.atcImageShackAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcImageShackAccountType.Size = new System.Drawing.Size(272, 29);
|
|
||||||
this.atcImageShackAccountType.TabIndex = 10;
|
|
||||||
this.atcImageShackAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImageShackAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// atcTinyPicAccountType
|
|
||||||
//
|
|
||||||
this.atcTinyPicAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
|
||||||
this.atcTinyPicAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcTinyPicAccountType.Size = new System.Drawing.Size(272, 29);
|
|
||||||
this.atcTinyPicAccountType.TabIndex = 0;
|
|
||||||
this.atcTinyPicAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Picasa
|
|
||||||
//
|
|
||||||
this.oauth2Picasa.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Picasa.LoginStatus = false;
|
|
||||||
this.oauth2Picasa.Name = "oauth2Picasa";
|
|
||||||
this.oauth2Picasa.Size = new System.Drawing.Size(328, 207);
|
|
||||||
this.oauth2Picasa.Status = "Login required.";
|
|
||||||
this.oauth2Picasa.TabIndex = 0;
|
|
||||||
this.oauth2Picasa.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
|
||||||
this.oauth2Picasa.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
|
||||||
this.oauth2Picasa.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oAuth2Gist
|
|
||||||
//
|
|
||||||
this.oAuth2Gist.Enabled = false;
|
|
||||||
this.oAuth2Gist.IsRefreshable = false;
|
|
||||||
this.oAuth2Gist.Location = new System.Drawing.Point(16, 51);
|
|
||||||
this.oAuth2Gist.LoginStatus = false;
|
|
||||||
this.oAuth2Gist.Name = "oAuth2Gist";
|
|
||||||
this.oAuth2Gist.Size = new System.Drawing.Size(328, 173);
|
|
||||||
this.oAuth2Gist.Status = "Status: Login required.";
|
|
||||||
this.oAuth2Gist.TabIndex = 16;
|
|
||||||
this.oAuth2Gist.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
|
||||||
this.oAuth2Gist.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
|
||||||
//
|
|
||||||
// atcGistAccountType
|
|
||||||
//
|
|
||||||
this.atcGistAccountType.Location = new System.Drawing.Point(15, 16);
|
|
||||||
this.atcGistAccountType.Name = "atcGistAccountType";
|
|
||||||
this.atcGistAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcGistAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcGistAccountType.TabIndex = 15;
|
|
||||||
this.atcGistAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// ucFTPAccounts
|
|
||||||
//
|
|
||||||
this.ucFTPAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.ucFTPAccounts.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.ucFTPAccounts.Margin = new System.Windows.Forms.Padding(4);
|
|
||||||
this.ucFTPAccounts.Name = "ucFTPAccounts";
|
|
||||||
this.ucFTPAccounts.Size = new System.Drawing.Size(792, 345);
|
|
||||||
this.ucFTPAccounts.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// atcMegaAccountType
|
|
||||||
//
|
|
||||||
this.atcMegaAccountType.Location = new System.Drawing.Point(16, 34);
|
|
||||||
this.atcMegaAccountType.Name = "atcMegaAccountType";
|
|
||||||
this.atcMegaAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcMegaAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcMegaAccountType.TabIndex = 14;
|
|
||||||
//
|
|
||||||
// atcSendSpaceAccountType
|
|
||||||
//
|
|
||||||
this.atcSendSpaceAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
|
||||||
this.atcSendSpaceAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcSendSpaceAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcSendSpaceAccountType.TabIndex = 0;
|
|
||||||
this.atcSendSpaceAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oAuthJira
|
|
||||||
//
|
|
||||||
this.oAuthJira.Location = new System.Drawing.Point(473, 13);
|
|
||||||
this.oAuthJira.LoginStatus = false;
|
|
||||||
this.oAuthJira.Name = "oAuthJira";
|
|
||||||
this.oAuthJira.Size = new System.Drawing.Size(328, 207);
|
|
||||||
this.oAuthJira.Status = "Status: Login required.";
|
|
||||||
this.oAuthJira.TabIndex = 1;
|
|
||||||
this.oAuthJira.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
|
||||||
this.oAuthJira.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
|
||||||
this.oAuthJira.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2GoogleDrive
|
|
||||||
//
|
|
||||||
this.oauth2GoogleDrive.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2GoogleDrive.LoginStatus = false;
|
|
||||||
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
|
||||||
this.oauth2GoogleDrive.Size = new System.Drawing.Size(328, 207);
|
|
||||||
this.oauth2GoogleDrive.Status = "Status: Login required.";
|
|
||||||
this.oauth2GoogleDrive.TabIndex = 0;
|
|
||||||
this.oauth2GoogleDrive.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// ucLocalhostAccounts
|
|
||||||
//
|
|
||||||
this.ucLocalhostAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.ucLocalhostAccounts.Location = new System.Drawing.Point(4, 4);
|
|
||||||
this.ucLocalhostAccounts.Margin = new System.Windows.Forms.Padding(4);
|
|
||||||
this.ucLocalhostAccounts.Name = "ucLocalhostAccounts";
|
|
||||||
this.ucLocalhostAccounts.Size = new System.Drawing.Size(790, 343);
|
|
||||||
this.ucLocalhostAccounts.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// oauth2GoogleURLShortener
|
|
||||||
//
|
|
||||||
this.oauth2GoogleURLShortener.Location = new System.Drawing.Point(16, 56);
|
|
||||||
this.oauth2GoogleURLShortener.LoginStatus = false;
|
|
||||||
this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener";
|
|
||||||
this.oauth2GoogleURLShortener.Size = new System.Drawing.Size(328, 207);
|
|
||||||
this.oauth2GoogleURLShortener.Status = "Status: Login required.";
|
|
||||||
this.oauth2GoogleURLShortener.TabIndex = 1;
|
|
||||||
this.oauth2GoogleURLShortener.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked);
|
|
||||||
this.oauth2GoogleURLShortener.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked);
|
|
||||||
this.oauth2GoogleURLShortener.RefreshButtonClicked += new UploadersLib.GUI.OAuth2Control.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcGoogleURLShortenerAccountType
|
|
||||||
//
|
|
||||||
this.atcGoogleURLShortenerAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType";
|
|
||||||
this.atcGoogleURLShortenerAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcGoogleURLShortenerAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcGoogleURLShortenerAccountType.TabIndex = 0;
|
|
||||||
this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new UploadersLib.GUI.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Bitly
|
|
||||||
//
|
|
||||||
this.oauth2Bitly.IsRefreshable = false;
|
|
||||||
this.oauth2Bitly.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Bitly.LoginStatus = false;
|
|
||||||
this.oauth2Bitly.Name = "oauth2Bitly";
|
|
||||||
this.oauth2Bitly.Size = new System.Drawing.Size(328, 168);
|
|
||||||
this.oauth2Bitly.Status = "Login required.";
|
|
||||||
this.oauth2Bitly.TabIndex = 0;
|
|
||||||
this.oauth2Bitly.OpenButtonClicked += new UploadersLib.GUI.OAuth2Control.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
|
||||||
this.oauth2Bitly.CompleteButtonClicked += new UploadersLib.GUI.OAuth2Control.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
|
||||||
//
|
|
||||||
// ucTwitterAccounts
|
|
||||||
//
|
|
||||||
this.ucTwitterAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.ucTwitterAccounts.Location = new System.Drawing.Point(3, 3);
|
|
||||||
this.ucTwitterAccounts.Name = "ucTwitterAccounts";
|
|
||||||
this.ucTwitterAccounts.Size = new System.Drawing.Size(798, 469);
|
|
||||||
this.ucTwitterAccounts.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// actRapidShareAccountType
|
// actRapidShareAccountType
|
||||||
//
|
//
|
||||||
this.actRapidShareAccountType.Location = new System.Drawing.Point(8, 16);
|
this.actRapidShareAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
@ -3611,6 +3613,17 @@ private void InitializeComponent()
|
||||||
this.actRapidShareAccountType.Size = new System.Drawing.Size(214, 29);
|
this.actRapidShareAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
this.actRapidShareAccountType.TabIndex = 16;
|
this.actRapidShareAccountType.TabIndex = 16;
|
||||||
//
|
//
|
||||||
|
// cbGoogleDriveIsPublic
|
||||||
|
//
|
||||||
|
this.cbGoogleDriveIsPublic.AutoSize = true;
|
||||||
|
this.cbGoogleDriveIsPublic.Location = new System.Drawing.Point(16, 232);
|
||||||
|
this.cbGoogleDriveIsPublic.Name = "cbGoogleDriveIsPublic";
|
||||||
|
this.cbGoogleDriveIsPublic.Size = new System.Drawing.Size(106, 17);
|
||||||
|
this.cbGoogleDriveIsPublic.TabIndex = 1;
|
||||||
|
this.cbGoogleDriveIsPublic.Text = "Is public upload?";
|
||||||
|
this.cbGoogleDriveIsPublic.UseVisualStyleBackColor = true;
|
||||||
|
this.cbGoogleDriveIsPublic.CheckedChanged += new System.EventHandler(this.cbGoogleDriveIsPublic_CheckedChanged);
|
||||||
|
//
|
||||||
// UploadersConfigForm
|
// UploadersConfigForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -3690,6 +3703,7 @@ private void InitializeComponent()
|
||||||
this.gpJiraServer.ResumeLayout(false);
|
this.gpJiraServer.ResumeLayout(false);
|
||||||
this.gpJiraServer.PerformLayout();
|
this.gpJiraServer.PerformLayout();
|
||||||
this.tpGoogleDrive.ResumeLayout(false);
|
this.tpGoogleDrive.ResumeLayout(false);
|
||||||
|
this.tpGoogleDrive.PerformLayout();
|
||||||
this.tpMinus.ResumeLayout(false);
|
this.tpMinus.ResumeLayout(false);
|
||||||
this.gbMinusUserPass.ResumeLayout(false);
|
this.gbMinusUserPass.ResumeLayout(false);
|
||||||
this.gbMinusUserPass.PerformLayout();
|
this.gbMinusUserPass.PerformLayout();
|
||||||
|
@ -3704,8 +3718,8 @@ private void InitializeComponent()
|
||||||
this.gbSharedFolder.PerformLayout();
|
this.gbSharedFolder.PerformLayout();
|
||||||
this.tpURLShorteners.ResumeLayout(false);
|
this.tpURLShorteners.ResumeLayout(false);
|
||||||
this.tcURLShorteners.ResumeLayout(false);
|
this.tcURLShorteners.ResumeLayout(false);
|
||||||
this.tpGoogleURLShortener.ResumeLayout(false);
|
|
||||||
this.tpBitly.ResumeLayout(false);
|
this.tpBitly.ResumeLayout(false);
|
||||||
|
this.tpGoogleURLShortener.ResumeLayout(false);
|
||||||
this.tpYourls.ResumeLayout(false);
|
this.tpYourls.ResumeLayout(false);
|
||||||
this.tpYourls.PerformLayout();
|
this.tpYourls.PerformLayout();
|
||||||
this.tpSocialNetworkingServices.ResumeLayout(false);
|
this.tpSocialNetworkingServices.ResumeLayout(false);
|
||||||
|
@ -4032,5 +4046,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.Label lblUpasteUserKey;
|
private System.Windows.Forms.Label lblUpasteUserKey;
|
||||||
private System.Windows.Forms.TextBox txtUpasteUserKey;
|
private System.Windows.Forms.TextBox txtUpasteUserKey;
|
||||||
private System.Windows.Forms.CheckBox cbUpasteIsPublic;
|
private System.Windows.Forms.CheckBox cbUpasteIsPublic;
|
||||||
|
private System.Windows.Forms.CheckBox cbGoogleDriveIsPublic;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -446,6 +446,11 @@ private void oauth2GoogleDrive_RefreshButtonClicked()
|
||||||
GoogleDriveAuthRefresh();
|
GoogleDriveAuthRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cbGoogleDriveIsPublic_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Config.GoogleDriveIsPublic = cbGoogleDriveIsPublic.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion Google Drive
|
#endregion Google Drive
|
||||||
|
|
||||||
#region Box
|
#region Box
|
||||||
|
|
|
@ -256,6 +256,8 @@ public void LoadSettings(UploadersConfig uploadersConfig)
|
||||||
oauth2GoogleDrive.LoginStatus = true;
|
oauth2GoogleDrive.LoginStatus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cbGoogleDriveIsPublic.Checked = Config.GoogleDriveIsPublic;
|
||||||
|
|
||||||
// Minus
|
// Minus
|
||||||
|
|
||||||
cbMinusURLType.Items.Clear();
|
cbMinusURLType.Items.Clear();
|
||||||
|
|
|
@ -123,9 +123,9 @@ protected string SendPostRequestURLEncoded(string url, Dictionary<string, string
|
||||||
return SendPostRequestURLEncoded(url, CreateQuery(arguments), responseType);
|
return SendPostRequestURLEncoded(url, CreateQuery(arguments), responseType);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string SendPostRequestJSON(string url, string json, ResponseType responseType = ResponseType.Text)
|
protected string SendPostRequestJSON(string url, string json, ResponseType responseType = ResponseType.Text, CookieCollection cookies = null, NameValueCollection headers = null)
|
||||||
{
|
{
|
||||||
using (HttpWebResponse response = PostResponseJSON(url, json))
|
using (HttpWebResponse response = PostResponseJSON(url, json, cookies, headers))
|
||||||
{
|
{
|
||||||
return ResponseToString(response, responseType);
|
return ResponseToString(response, responseType);
|
||||||
}
|
}
|
||||||
|
@ -167,14 +167,14 @@ private HttpWebResponse PostResponseURLEncoded(string url, Dictionary<string, st
|
||||||
return PostResponseURLEncoded(url, CreateQuery(arguments));
|
return PostResponseURLEncoded(url, CreateQuery(arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpWebResponse PostResponseJSON(string url, string json)
|
private HttpWebResponse PostResponseJSON(string url, string json, CookieCollection cookies = null, NameValueCollection headers = null)
|
||||||
{
|
{
|
||||||
byte[] data = Encoding.UTF8.GetBytes(json);
|
byte[] data = Encoding.UTF8.GetBytes(json);
|
||||||
|
|
||||||
using (MemoryStream stream = new MemoryStream())
|
using (MemoryStream stream = new MemoryStream())
|
||||||
{
|
{
|
||||||
stream.Write(data, 0, data.Length);
|
stream.Write(data, 0, data.Length);
|
||||||
return GetResponseUsingPost(url, stream, null, "application/json");
|
return GetResponseUsingPost(url, stream, null, "application/json", cookies, headers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
|
||||||
// Google Drive
|
// Google Drive
|
||||||
|
|
||||||
public OAuth2Info GoogleDriveOAuth2Info = null;
|
public OAuth2Info GoogleDriveOAuth2Info = null;
|
||||||
|
public bool GoogleDriveIsPublic = false;
|
||||||
|
|
||||||
// RapidShare
|
// RapidShare
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue