mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Merge pull request #3619 from jdon/master
Auto expiring of shared links for OwnCloud/NextCloud
This commit is contained in:
commit
303c31ac81
5 changed files with 473 additions and 362 deletions
|
@ -55,7 +55,9 @@ public override GenericUploader CreateUploader(UploadersConfig config, TaskRefer
|
|||
CreateShare = config.OwnCloudCreateShare,
|
||||
DirectLink = config.OwnCloudDirectLink,
|
||||
PreviewLink = config.OwnCloudUsePreviewLinks,
|
||||
IsCompatibility81 = config.OwnCloud81Compatibility
|
||||
IsCompatibility81 = config.OwnCloud81Compatibility,
|
||||
AutoExpireTime = config.OwnCloudExpiryTime,
|
||||
AutoExpire = config.OwnCloudAutoExpire
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -68,10 +70,12 @@ public sealed class OwnCloud : FileUploader
|
|||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Path { get; set; }
|
||||
public int AutoExpireTime { get; set; }
|
||||
public bool CreateShare { get; set; }
|
||||
public bool DirectLink { get; set; }
|
||||
public bool PreviewLink { get; set; }
|
||||
public bool IsCompatibility81 { get; set; }
|
||||
public bool AutoExpire { get; set; }
|
||||
|
||||
public OwnCloud(string host, string username, string password)
|
||||
{
|
||||
|
@ -128,7 +132,7 @@ public override UploadResult Upload(Stream stream, string fileName)
|
|||
return result;
|
||||
}
|
||||
|
||||
// http://doc.owncloud.org/server/7.0/developer_manual/core/ocs-share-api.html#create-a-new-share
|
||||
// https://doc.owncloud.org/server/10.0/developer_manual/core/ocs-share-api.html#create-a-new-share
|
||||
public string ShareFile(string path)
|
||||
{
|
||||
Dictionary<string, string> args = new Dictionary<string, string>();
|
||||
|
@ -139,6 +143,26 @@ public string ShareFile(string path)
|
|||
// args.Add("password", ""); // password to protect public link Share with
|
||||
args.Add("permissions", "1"); // 1 = read; 2 = update; 4 = create; 8 = delete; 16 = share; 31 = all (default: 31, for public shares: 1)
|
||||
|
||||
if (AutoExpire)
|
||||
{
|
||||
if (AutoExpireTime == 0)
|
||||
{
|
||||
throw new Exception("ownCloud Auto Epxire Time is not valid.");
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime expireTime = DateTime.UtcNow.AddDays(AutoExpireTime);
|
||||
args.Add("expireDate", $"{expireTime.Year}-{expireTime.Month}-{expireTime.Day}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw new Exception("ownCloud Auto Expire time is invalid");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string url = URLHelpers.CombineURL(Host, "ocs/v1.php/apps/files_sharing/api/v1/shares?format=json");
|
||||
url = URLHelpers.FixPrefix(url);
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ private void InitializeComponent()
|
|||
this.lblTwitterDefaultMessage = new System.Windows.Forms.Label();
|
||||
this.txtTwitterDefaultMessage = new System.Windows.Forms.TextBox();
|
||||
this.cbTwitterSkipMessageBox = new System.Windows.Forms.CheckBox();
|
||||
this.oauthTwitter = new ShareX.UploadersLib.OAuthControl();
|
||||
this.txtTwitterDescription = new System.Windows.Forms.TextBox();
|
||||
this.lblTwitterDescription = new System.Windows.Forms.Label();
|
||||
this.btnTwitterRemove = new System.Windows.Forms.Button();
|
||||
|
@ -140,7 +139,6 @@ private void InitializeComponent()
|
|||
this.tpBitly = new System.Windows.Forms.TabPage();
|
||||
this.txtBitlyDomain = new System.Windows.Forms.TextBox();
|
||||
this.lblBitlyDomain = new System.Windows.Forms.Label();
|
||||
this.oauth2Bitly = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpYourls = new System.Windows.Forms.TabPage();
|
||||
this.txtYourlsPassword = new System.Windows.Forms.TextBox();
|
||||
this.txtYourlsUsername = new System.Windows.Forms.TextBox();
|
||||
|
@ -234,12 +232,10 @@ private void InitializeComponent()
|
|||
this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox();
|
||||
this.lblDropboxPath = new System.Windows.Forms.Label();
|
||||
this.txtDropboxPath = new System.Windows.Forms.TextBox();
|
||||
this.oauth2Dropbox = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpOneDrive = new System.Windows.Forms.TabPage();
|
||||
this.tvOneDrive = new System.Windows.Forms.TreeView();
|
||||
this.lblOneDriveFolderID = new System.Windows.Forms.Label();
|
||||
this.cbOneDriveCreateShareableLink = new System.Windows.Forms.CheckBox();
|
||||
this.oAuth2OneDrive = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpGoogleDrive = new System.Windows.Forms.TabPage();
|
||||
this.cbGoogleDriveDirectLink = new System.Windows.Forms.CheckBox();
|
||||
this.cbGoogleDriveUseFolder = new System.Windows.Forms.CheckBox();
|
||||
|
@ -250,7 +246,6 @@ private void InitializeComponent()
|
|||
this.chGoogleDriveDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.btnGoogleDriveRefreshFolders = new System.Windows.Forms.Button();
|
||||
this.cbGoogleDriveIsPublic = new System.Windows.Forms.CheckBox();
|
||||
this.oauth2GoogleDrive = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpPuush = new System.Windows.Forms.TabPage();
|
||||
this.lblPuushAPIKey = new System.Windows.Forms.Label();
|
||||
this.txtPuushAPIKey = new System.Windows.Forms.TextBox();
|
||||
|
@ -267,7 +262,6 @@ private void InitializeComponent()
|
|||
this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.lblBoxFolderID = new System.Windows.Forms.Label();
|
||||
this.btnBoxRefreshFolders = new System.Windows.Forms.Button();
|
||||
this.oauth2Box = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpAmazonS3 = new System.Windows.Forms.TabPage();
|
||||
this.gbAmazonS3Advanced = new System.Windows.Forms.GroupBox();
|
||||
this.lblAmazonS3StripExtension = new System.Windows.Forms.Label();
|
||||
|
@ -307,7 +301,6 @@ private void InitializeComponent()
|
|||
this.txtGoogleCloudStorageDomain = new System.Windows.Forms.TextBox();
|
||||
this.lblGoogleCloudStorageBucket = new System.Windows.Forms.Label();
|
||||
this.txtGoogleCloudStorageBucket = new System.Windows.Forms.TextBox();
|
||||
this.oauth2GoogleCloudStorage = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpAzureStorage = new System.Windows.Forms.TabPage();
|
||||
this.lblAzureStorageURLPreview = new System.Windows.Forms.Label();
|
||||
this.lblAzureStorageURLPreviewLabel = new System.Windows.Forms.Label();
|
||||
|
@ -326,8 +319,6 @@ private void InitializeComponent()
|
|||
this.lblAzureStorageCustomDomain = new System.Windows.Forms.Label();
|
||||
this.tpGfycat = new System.Windows.Forms.TabPage();
|
||||
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.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
||||
this.lblMegaStatus = new System.Windows.Forms.Label();
|
||||
|
@ -341,6 +332,9 @@ private void InitializeComponent()
|
|||
this.txtMegaPassword = new System.Windows.Forms.TextBox();
|
||||
this.lblMegaPassword = new System.Windows.Forms.Label();
|
||||
this.tpOwnCloud = new System.Windows.Forms.TabPage();
|
||||
this.txtOwnCloudExpiryTime = new System.Windows.Forms.NumericUpDown();
|
||||
this.cbOwnCloudAutoExpire = new System.Windows.Forms.CheckBox();
|
||||
this.lblOwnCloudExpiryTime = new System.Windows.Forms.Label();
|
||||
this.cbOwnCloudUsePreviewLinks = new System.Windows.Forms.CheckBox();
|
||||
this.lblOwnCloudHostExample = new System.Windows.Forms.Label();
|
||||
this.cbOwnCloud81Compatibility = new System.Windows.Forms.CheckBox();
|
||||
|
@ -374,7 +368,6 @@ private void InitializeComponent()
|
|||
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
|
||||
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
|
||||
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
|
||||
this.atcSendSpaceAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||
this.tpGe_tt = new System.Windows.Forms.TabPage();
|
||||
this.lblGe_ttStatus = new System.Windows.Forms.Label();
|
||||
this.lblGe_ttPassword = new System.Windows.Forms.Label();
|
||||
|
@ -395,7 +388,6 @@ private void InitializeComponent()
|
|||
this.txtJiraConfigHelp = new System.Windows.Forms.TextBox();
|
||||
this.txtJiraHost = new System.Windows.Forms.TextBox();
|
||||
this.lblJiraHost = new System.Windows.Forms.Label();
|
||||
this.oAuthJira = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpLambda = new System.Windows.Forms.TabPage();
|
||||
this.lblLambdaInfo = new System.Windows.Forms.Label();
|
||||
this.lblLambdaApiKey = new System.Windows.Forms.Label();
|
||||
|
@ -492,7 +484,6 @@ private void InitializeComponent()
|
|||
this.cbYouTubeUseShortenedLink = new System.Windows.Forms.CheckBox();
|
||||
this.cbYouTubePrivacyType = new System.Windows.Forms.ComboBox();
|
||||
this.lblYouTubePrivacyType = new System.Windows.Forms.Label();
|
||||
this.oauth2YouTube = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpSharedFolder = new System.Windows.Forms.TabPage();
|
||||
this.lbSharedFolderAccounts = new System.Windows.Forms.ListBox();
|
||||
this.pgSharedFolderAccount = new System.Windows.Forms.PropertyGrid();
|
||||
|
@ -552,7 +543,6 @@ private void InitializeComponent()
|
|||
this.txtGistCustomURL = new System.Windows.Forms.TextBox();
|
||||
this.cbGistUseRawURL = 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.cbUpasteIsPublic = new System.Windows.Forms.CheckBox();
|
||||
this.lblUpasteUserKey = new System.Windows.Forms.Label();
|
||||
|
@ -576,8 +566,6 @@ private void InitializeComponent()
|
|||
this.cbImgurUseGIFV = new System.Windows.Forms.CheckBox();
|
||||
this.cbImgurUploadSelectedAlbum = 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 System.Windows.Forms.ListView();
|
||||
this.chImgurID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.chImgurTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
|
@ -595,7 +583,6 @@ private void InitializeComponent()
|
|||
this.txtImageShackPassword = new System.Windows.Forms.TextBox();
|
||||
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
||||
this.tpTinyPic = new System.Windows.Forms.TabPage();
|
||||
this.atcTinyPicAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||
this.btnTinyPicLogin = new System.Windows.Forms.Button();
|
||||
this.txtTinyPicPassword = new System.Windows.Forms.TextBox();
|
||||
this.lblTinyPicPassword = new System.Windows.Forms.Label();
|
||||
|
@ -604,7 +591,6 @@ private void InitializeComponent()
|
|||
this.btnTinyPicOpenMyImages = new System.Windows.Forms.Button();
|
||||
this.tpFlickr = new System.Windows.Forms.TabPage();
|
||||
this.cbFlickrDirectLink = new System.Windows.Forms.CheckBox();
|
||||
this.oauthFlickr = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpPhotobucket = new System.Windows.Forms.TabPage();
|
||||
this.gbPhotobucketAlbumPath = new System.Windows.Forms.GroupBox();
|
||||
this.btnPhotobucketAddAlbum = new System.Windows.Forms.Button();
|
||||
|
@ -632,7 +618,6 @@ private void InitializeComponent()
|
|||
this.chPicasaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.chPicasaDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.btnPicasaRefreshAlbumList = new System.Windows.Forms.Button();
|
||||
this.oauth2Picasa = new ShareX.UploadersLib.OAuthControl();
|
||||
this.tpChevereto = new System.Windows.Forms.TabPage();
|
||||
this.btnCheveretoTestAll = new System.Windows.Forms.Button();
|
||||
this.lblCheveretoUploadURLExample = new System.Windows.Forms.Label();
|
||||
|
@ -650,6 +635,24 @@ private void InitializeComponent()
|
|||
this.tcUploaders = new System.Windows.Forms.TabControl();
|
||||
this.lblWidthHint = new System.Windows.Forms.Label();
|
||||
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
|
||||
this.atcImgurAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||
this.oauth2Imgur = new ShareX.UploadersLib.OAuthControl();
|
||||
this.atcTinyPicAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||
this.oauthFlickr = new ShareX.UploadersLib.OAuthControl();
|
||||
this.oauth2Picasa = new ShareX.UploadersLib.OAuthControl();
|
||||
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.oauth2YouTube = new ShareX.UploadersLib.OAuthControl();
|
||||
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||
this.tpOtherUploaders.SuspendLayout();
|
||||
this.tcOtherUploaders.SuspendLayout();
|
||||
|
@ -692,6 +695,7 @@ private void InitializeComponent()
|
|||
this.tpGfycat.SuspendLayout();
|
||||
this.tpMega.SuspendLayout();
|
||||
this.tpOwnCloud.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtOwnCloudExpiryTime)).BeginInit();
|
||||
this.tpMediaFire.SuspendLayout();
|
||||
this.tpPushbullet.SuspendLayout();
|
||||
this.tpSendSpace.SuspendLayout();
|
||||
|
@ -843,15 +847,6 @@ private void InitializeComponent()
|
|||
this.cbTwitterSkipMessageBox.UseVisualStyleBackColor = true;
|
||||
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.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
|
||||
//
|
||||
resources.ApplyResources(this.txtTwitterDescription, "txtTwitterDescription");
|
||||
|
@ -1577,15 +1572,6 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.lblBitlyDomain, "lblBitlyDomain");
|
||||
this.lblBitlyDomain.Name = "lblBitlyDomain";
|
||||
//
|
||||
// oauth2Bitly
|
||||
//
|
||||
this.oauth2Bitly.IsRefreshable = false;
|
||||
resources.ApplyResources(this.oauth2Bitly, "oauth2Bitly");
|
||||
this.oauth2Bitly.Name = "oauth2Bitly";
|
||||
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
|
||||
//
|
||||
this.tpYourls.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2287,15 +2273,6 @@ private void InitializeComponent()
|
|||
this.txtDropboxPath.Name = "txtDropboxPath";
|
||||
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.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
|
||||
//
|
||||
this.tpOneDrive.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2325,15 +2302,6 @@ private void InitializeComponent()
|
|||
this.cbOneDriveCreateShareableLink.UseVisualStyleBackColor = true;
|
||||
this.cbOneDriveCreateShareableLink.CheckedChanged += new System.EventHandler(this.cbOneDriveCreateShareableLink_CheckedChanged);
|
||||
//
|
||||
// oAuth2OneDrive
|
||||
//
|
||||
resources.ApplyResources(this.oAuth2OneDrive, "oAuth2OneDrive");
|
||||
this.oAuth2OneDrive.Name = "oAuth2OneDrive";
|
||||
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
|
||||
//
|
||||
this.tpGoogleDrive.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2409,15 +2377,6 @@ private void InitializeComponent()
|
|||
this.cbGoogleDriveIsPublic.UseVisualStyleBackColor = true;
|
||||
this.cbGoogleDriveIsPublic.CheckedChanged += new System.EventHandler(this.cbGoogleDriveIsPublic_CheckedChanged);
|
||||
//
|
||||
// oauth2GoogleDrive
|
||||
//
|
||||
resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive");
|
||||
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
||||
this.oauth2GoogleDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
||||
this.oauth2GoogleDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
||||
this.oauth2GoogleDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked);
|
||||
this.oauth2GoogleDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
||||
//
|
||||
// tpPuush
|
||||
//
|
||||
this.tpPuush.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2532,15 +2491,6 @@ private void InitializeComponent()
|
|||
this.btnBoxRefreshFolders.UseVisualStyleBackColor = true;
|
||||
this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click);
|
||||
//
|
||||
// oauth2Box
|
||||
//
|
||||
resources.ApplyResources(this.oauth2Box, "oauth2Box");
|
||||
this.oauth2Box.Name = "oauth2Box";
|
||||
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
|
||||
//
|
||||
this.tpAmazonS3.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2811,15 +2761,6 @@ private void InitializeComponent()
|
|||
this.txtGoogleCloudStorageBucket.Name = "txtGoogleCloudStorageBucket";
|
||||
this.txtGoogleCloudStorageBucket.TextChanged += new System.EventHandler(this.txtGoogleCloudStorageBucket_TextChanged);
|
||||
//
|
||||
// oauth2GoogleCloudStorage
|
||||
//
|
||||
resources.ApplyResources(this.oauth2GoogleCloudStorage, "oauth2GoogleCloudStorage");
|
||||
this.oauth2GoogleCloudStorage.Name = "oauth2GoogleCloudStorage";
|
||||
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
|
||||
//
|
||||
this.tpAzureStorage.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -2947,22 +2888,6 @@ private void InitializeComponent()
|
|||
this.cbGfycatIsPublic.UseVisualStyleBackColor = true;
|
||||
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.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
|
||||
//
|
||||
this.tpMega.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -3050,6 +2975,9 @@ private void InitializeComponent()
|
|||
// tpOwnCloud
|
||||
//
|
||||
this.tpOwnCloud.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.tpOwnCloud.Controls.Add(this.txtOwnCloudExpiryTime);
|
||||
this.tpOwnCloud.Controls.Add(this.cbOwnCloudAutoExpire);
|
||||
this.tpOwnCloud.Controls.Add(this.lblOwnCloudExpiryTime);
|
||||
this.tpOwnCloud.Controls.Add(this.cbOwnCloudUsePreviewLinks);
|
||||
this.tpOwnCloud.Controls.Add(this.lblOwnCloudHostExample);
|
||||
this.tpOwnCloud.Controls.Add(this.cbOwnCloud81Compatibility);
|
||||
|
@ -3066,6 +2994,39 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.tpOwnCloud, "tpOwnCloud");
|
||||
this.tpOwnCloud.Name = "tpOwnCloud";
|
||||
//
|
||||
// txtOwnCloudExpiryTime
|
||||
//
|
||||
resources.ApplyResources(this.txtOwnCloudExpiryTime, "txtOwnCloudExpiryTime");
|
||||
this.txtOwnCloudExpiryTime.Maximum = new decimal(new int[] {
|
||||
1410065407,
|
||||
2,
|
||||
0,
|
||||
0});
|
||||
this.txtOwnCloudExpiryTime.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.txtOwnCloudExpiryTime.Name = "txtOwnCloudExpiryTime";
|
||||
this.txtOwnCloudExpiryTime.Value = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.txtOwnCloudExpiryTime.ValueChanged += new System.EventHandler(this.txtOwnExpiryTime_TextChanged);
|
||||
//
|
||||
// cbOwnCloudAutoExpire
|
||||
//
|
||||
resources.ApplyResources(this.cbOwnCloudAutoExpire, "cbOwnCloudAutoExpire");
|
||||
this.cbOwnCloudAutoExpire.Name = "cbOwnCloudAutoExpire";
|
||||
this.cbOwnCloudAutoExpire.UseVisualStyleBackColor = true;
|
||||
this.cbOwnCloudAutoExpire.CheckedChanged += new System.EventHandler(this.cbOwnCloudAutoExpire_CheckedChanged);
|
||||
//
|
||||
// lblOwnCloudExpiryTime
|
||||
//
|
||||
resources.ApplyResources(this.lblOwnCloudExpiryTime, "lblOwnCloudExpiryTime");
|
||||
this.lblOwnCloudExpiryTime.Name = "lblOwnCloudExpiryTime";
|
||||
//
|
||||
// cbOwnCloudUsePreviewLinks
|
||||
//
|
||||
resources.ApplyResources(this.cbOwnCloudUsePreviewLinks, "cbOwnCloudUsePreviewLinks");
|
||||
|
@ -3284,13 +3245,6 @@ private void InitializeComponent()
|
|||
this.txtSendSpaceUserName.Name = "txtSendSpaceUserName";
|
||||
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);
|
||||
//
|
||||
// tpGe_tt
|
||||
//
|
||||
this.tpGe_tt.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -3425,15 +3379,6 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.lblJiraHost, "lblJiraHost");
|
||||
this.lblJiraHost.Name = "lblJiraHost";
|
||||
//
|
||||
// oAuthJira
|
||||
//
|
||||
resources.ApplyResources(this.oAuthJira, "oAuthJira");
|
||||
this.oAuthJira.Name = "oAuthJira";
|
||||
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
|
||||
//
|
||||
this.tpLambda.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -4143,15 +4088,6 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.lblYouTubePrivacyType, "lblYouTubePrivacyType");
|
||||
this.lblYouTubePrivacyType.Name = "lblYouTubePrivacyType";
|
||||
//
|
||||
// oauth2YouTube
|
||||
//
|
||||
resources.ApplyResources(this.oauth2YouTube, "oauth2YouTube");
|
||||
this.oauth2YouTube.Name = "oauth2YouTube";
|
||||
this.oauth2YouTube.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2YouTube_OpenButtonClicked);
|
||||
this.oauth2YouTube.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2YouTube_CompleteButtonClicked);
|
||||
this.oauth2YouTube.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2YouTube_ClearButtonClicked);
|
||||
this.oauth2YouTube.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2YouTube_RefreshButtonClicked);
|
||||
//
|
||||
// tpSharedFolder
|
||||
//
|
||||
this.tpSharedFolder.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -4584,15 +4520,6 @@ private void InitializeComponent()
|
|||
this.cbGistPublishPublic.UseVisualStyleBackColor = true;
|
||||
this.cbGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged);
|
||||
//
|
||||
// oAuth2Gist
|
||||
//
|
||||
this.oAuth2Gist.IsRefreshable = false;
|
||||
resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist");
|
||||
this.oAuth2Gist.Name = "oAuth2Gist";
|
||||
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
|
||||
//
|
||||
this.tpUpaste.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -4765,22 +4692,6 @@ private void InitializeComponent()
|
|||
this.cbImgurDirectLink.UseVisualStyleBackColor = true;
|
||||
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.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
|
||||
//
|
||||
this.lvImgurAlbumList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
|
@ -4907,13 +4818,6 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.tpTinyPic, "tpTinyPic");
|
||||
this.tpTinyPic.Name = "tpTinyPic";
|
||||
//
|
||||
// atcTinyPicAccountType
|
||||
//
|
||||
resources.ApplyResources(this.atcTinyPicAccountType, "atcTinyPicAccountType");
|
||||
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
||||
this.atcTinyPicAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||
this.atcTinyPicAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
||||
//
|
||||
// btnTinyPicLogin
|
||||
//
|
||||
resources.ApplyResources(this.btnTinyPicLogin, "btnTinyPicLogin");
|
||||
|
@ -4966,15 +4870,6 @@ private void InitializeComponent()
|
|||
this.cbFlickrDirectLink.UseVisualStyleBackColor = true;
|
||||
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.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
|
||||
//
|
||||
this.tpPhotobucket.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -5160,15 +5055,6 @@ private void InitializeComponent()
|
|||
this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true;
|
||||
this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click);
|
||||
//
|
||||
// oauth2Picasa
|
||||
//
|
||||
resources.ApplyResources(this.oauth2Picasa, "oauth2Picasa");
|
||||
this.oauth2Picasa.Name = "oauth2Picasa";
|
||||
this.oauth2Picasa.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
||||
this.oauth2Picasa.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
||||
this.oauth2Picasa.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked);
|
||||
this.oauth2Picasa.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
||||
//
|
||||
// tpChevereto
|
||||
//
|
||||
this.tpChevereto.BackColor = System.Drawing.SystemColors.Window;
|
||||
|
@ -5292,6 +5178,160 @@ private void InitializeComponent()
|
|||
this.ttlvMain.MainTabControl = null;
|
||||
this.ttlvMain.Name = "ttlvMain";
|
||||
//
|
||||
// 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.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);
|
||||
//
|
||||
// atcTinyPicAccountType
|
||||
//
|
||||
resources.ApplyResources(this.atcTinyPicAccountType, "atcTinyPicAccountType");
|
||||
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
||||
this.atcTinyPicAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||
this.atcTinyPicAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
||||
//
|
||||
// oauthFlickr
|
||||
//
|
||||
this.oauthFlickr.IsRefreshable = false;
|
||||
resources.ApplyResources(this.oauthFlickr, "oauthFlickr");
|
||||
this.oauthFlickr.Name = "oauthFlickr";
|
||||
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);
|
||||
//
|
||||
// oauth2Picasa
|
||||
//
|
||||
resources.ApplyResources(this.oauth2Picasa, "oauth2Picasa");
|
||||
this.oauth2Picasa.Name = "oauth2Picasa";
|
||||
this.oauth2Picasa.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
||||
this.oauth2Picasa.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
||||
this.oauth2Picasa.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked);
|
||||
this.oauth2Picasa.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
||||
//
|
||||
// oAuth2Gist
|
||||
//
|
||||
this.oAuth2Gist.IsRefreshable = false;
|
||||
resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist");
|
||||
this.oAuth2Gist.Name = "oAuth2Gist";
|
||||
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.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.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
|
||||
//
|
||||
resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive");
|
||||
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
||||
this.oauth2GoogleDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
||||
this.oauth2GoogleDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
||||
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.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.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.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.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.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.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);
|
||||
//
|
||||
// oauth2YouTube
|
||||
//
|
||||
resources.ApplyResources(this.oauth2YouTube, "oauth2YouTube");
|
||||
this.oauth2YouTube.Name = "oauth2YouTube";
|
||||
this.oauth2YouTube.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2YouTube_OpenButtonClicked);
|
||||
this.oauth2YouTube.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2YouTube_CompleteButtonClicked);
|
||||
this.oauth2YouTube.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2YouTube_ClearButtonClicked);
|
||||
this.oauth2YouTube.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2YouTube_RefreshButtonClicked);
|
||||
//
|
||||
// actRapidShareAccountType
|
||||
//
|
||||
resources.ApplyResources(this.actRapidShareAccountType, "actRapidShareAccountType");
|
||||
|
@ -5384,6 +5424,7 @@ private void InitializeComponent()
|
|||
this.tpMega.PerformLayout();
|
||||
this.tpOwnCloud.ResumeLayout(false);
|
||||
this.tpOwnCloud.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtOwnCloudExpiryTime)).EndInit();
|
||||
this.tpMediaFire.ResumeLayout(false);
|
||||
this.tpMediaFire.PerformLayout();
|
||||
this.tpPushbullet.ResumeLayout(false);
|
||||
|
@ -6097,5 +6138,8 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.Label lblAzureStorageURLPreview;
|
||||
private System.Windows.Forms.Label lblAzureStorageURLPreviewLabel;
|
||||
private System.Windows.Forms.Label lblFirebaseDomainExample;
|
||||
private System.Windows.Forms.Label lblOwnCloudExpiryTime;
|
||||
private System.Windows.Forms.CheckBox cbOwnCloudAutoExpire;
|
||||
private System.Windows.Forms.NumericUpDown txtOwnCloudExpiryTime;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -589,10 +589,12 @@ public void LoadSettings()
|
|||
txtOwnCloudUsername.Text = Config.OwnCloudUsername;
|
||||
txtOwnCloudPassword.Text = Config.OwnCloudPassword;
|
||||
txtOwnCloudPath.Text = Config.OwnCloudPath;
|
||||
txtOwnCloudExpiryTime.Value = Config.OwnCloudExpiryTime;
|
||||
cbOwnCloudCreateShare.Checked = Config.OwnCloudCreateShare;
|
||||
cbOwnCloudDirectLink.Checked = Config.OwnCloudDirectLink;
|
||||
cbOwnCloud81Compatibility.Checked = Config.OwnCloud81Compatibility;
|
||||
cbOwnCloudUsePreviewLinks.Checked = Config.OwnCloudUsePreviewLinks;
|
||||
cbOwnCloudAutoExpire.Checked = Config.OwnCloudAutoExpire;
|
||||
|
||||
#endregion ownCloud / Nextcloud
|
||||
|
||||
|
@ -2306,6 +2308,11 @@ private void txtOwnCloudPath_TextChanged(object sender, EventArgs e)
|
|||
Config.OwnCloudPath = txtOwnCloudPath.Text;
|
||||
}
|
||||
|
||||
private void txtOwnExpiryTime_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
Config.OwnCloudExpiryTime = Convert.ToInt32(txtOwnCloudExpiryTime.Value);
|
||||
}
|
||||
|
||||
private void cbOwnCloudCreateShare_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Config.OwnCloudCreateShare = cbOwnCloudCreateShare.Checked;
|
||||
|
@ -2325,6 +2332,10 @@ private void cbOwnCloudUsePreviewLinks_CheckedChanged(object sender, EventArgs e
|
|||
{
|
||||
Config.OwnCloudUsePreviewLinks = cbOwnCloudUsePreviewLinks.Checked;
|
||||
}
|
||||
private void cbOwnCloudAutoExpire_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Config.OwnCloudAutoExpire = cbOwnCloudAutoExpire.Checked;
|
||||
}
|
||||
|
||||
#endregion ownCloud / Nextcloud
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -293,10 +293,12 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
|
|||
public string OwnCloudUsername = "";
|
||||
public string OwnCloudPassword = "";
|
||||
public string OwnCloudPath = "/";
|
||||
public int OwnCloudExpiryTime = 7;
|
||||
public bool OwnCloudCreateShare = true;
|
||||
public bool OwnCloudDirectLink = false;
|
||||
public bool OwnCloud81Compatibility = true;
|
||||
public bool OwnCloudUsePreviewLinks = false;
|
||||
public bool OwnCloudAutoExpire = false;
|
||||
|
||||
#endregion ownCloud / Nextcloud
|
||||
|
||||
|
|
Loading…
Reference in a new issue