CodeMaid cleanup

This commit is contained in:
Jaex 2018-03-01 01:52:11 +03:00
parent b115cb8cd6
commit c33bc4844f
47 changed files with 131 additions and 221 deletions

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration>

View file

@ -23,11 +23,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.HelpersLib

View file

@ -23,12 +23,8 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
namespace ShareX.HelpersLib
{

View file

@ -23,12 +23,8 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.HelpersLib

View file

@ -24,9 +24,6 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

View file

@ -47,7 +47,7 @@ public ScreenTearingTestForm()
screenRectangle0Based = new Rectangle(0, 0, screenRectangle.Width, screenRectangle.Height);
SuspendLayout();
AutoScaleMode = AutoScaleMode.None;
StartPosition = FormStartPosition.Manual;
Bounds = screenRectangle;

View file

@ -24,11 +24,9 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using IWshRuntimeLibrary;
using ShareX.HelpersLib.Properties;
using Shell32;
using System;
using System.IO;
using System.Windows.Forms;
using File = System.IO.File;
using Folder = Shell32.Folder;
@ -45,7 +43,7 @@ public static bool SetShortcut(bool create, Environment.SpecialFolder specialFol
public static bool SetShortcut(bool create, string shortcutPath, string targetPath = "", string arguments = "")
{
try
{
{
if (create)
{
return Create(shortcutPath, targetPath, arguments);

View file

@ -23,11 +23,6 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ShareX.HelpersLib
{
public class CodeMenuItem

View file

@ -117,7 +117,7 @@ public void PrintPage(PrintPageEventArgs e)
// next character
int c;
for (;;)
for (; ; )
{
// get next character
c = NextChar();

View file

@ -24,12 +24,8 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Cache;
using System.Text;
namespace ShareX.HelpersLib
{

View file

@ -24,9 +24,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ShareX.HelpersLib
{

View file

@ -28,7 +28,6 @@ You should have received a copy of the GNU General Public License
using System.Drawing;
using System.Drawing.Design;
using System.IO;
using System.Windows.Forms;
namespace ShareX.ImageEffectsLib
{

View file

@ -26,8 +26,6 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace ShareX.MediaLib

View file

@ -25,13 +25,8 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.MediaLib

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration>

View file

@ -25,12 +25,6 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -25,12 +25,7 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -25,12 +25,7 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -89,7 +89,7 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
SuspendLayout();
AutoScaleMode = AutoScaleMode.None;
StartPosition = FormStartPosition.Manual;
Bounds = ScreenRectangle;

View file

@ -26,12 +26,9 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -24,11 +24,11 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using Manina.Windows.Forms;
using ShareX.HelpersLib;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Windows.Forms;
using ShareX.HelpersLib;
using static Manina.Windows.Forms.ImageListView;
namespace ShareX.ScreenCaptureLib

View file

@ -26,11 +26,6 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -24,7 +24,6 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

View file

@ -24,12 +24,8 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
namespace ShareX.ScreenCaptureLib
{

View file

@ -175,13 +175,21 @@ public virtual void OnCreated()
InitialSize = Rectangle.Size;
}
public virtual void OnMoving() { }
public virtual void OnMoving()
{
}
public virtual void OnMoved() { }
public virtual void OnMoved()
{
}
public virtual void OnResizing() { }
public virtual void OnResizing()
{
}
public virtual void OnResized() { }
public virtual void OnResized()
{
}
public virtual void OnUpdate()
{

View file

@ -23,13 +23,8 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib
{

View file

@ -24,11 +24,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ShareX.ScreenCaptureLib

View file

@ -737,7 +737,7 @@ internal void CreateToolbar()
tsmiAddImageEffects.Click += (sender, e) => AddImageEffects();
tsddbImage.DropDownItems.Add(tsmiAddImageEffects);
#endregion
#endregion Image
}
tsMain.Items.Add(new ToolStripSeparator());

View file

@ -23,11 +23,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace ShareX.ScreenCaptureLib
{

View file

@ -23,12 +23,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace ShareX.ScreenCaptureLib
{

View file

@ -24,11 +24,11 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Linq;
using System.Collections.Generic;
using System.Net;
namespace ShareX.Setup
{

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
</configuration>
</configuration>

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration>

View file

@ -62,7 +62,7 @@ public class Pomf : FileUploader
// More clones: https://github.com/tsudoko/long-live-pomf/blob/master/long-live-pomf.md
public static List<PomfUploader> Uploaders = new List<PomfUploader>()
{
//new PomfUploader("https://pomf.se/upload.php"),
//new PomfUploader("https://pomf.se/upload.php"),
new PomfUploader("https://comfy.moe/upload.php"),
new PomfUploader("https://doko.moe/upload.php"),
new PomfUploader("https://edfile.pro/upload/archive"),

View file

@ -134,4 +134,4 @@ private void llGoogleTranslate_LinkClicked(object sender, LinkLabelLinkClickedEv
this.Close();
}
}
}
}

View file

@ -25,7 +25,6 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using ShareX.UploadersLib.ImageUploaders;
using ShareX.UploadersLib.Properties;
using System;
using System.Windows.Forms;

View file

@ -194,7 +194,7 @@ public void LoadSettings()
cbImgurUploadSelectedAlbum.Checked = Config.ImgurUploadSelectedAlbum;
ImgurFillAlbumList();
#endregion
#endregion Imgur
#region ImageShack
@ -202,7 +202,7 @@ public void LoadSettings()
txtImageShackPassword.Text = Config.ImageShackSettings.Password;
cbImageShackIsPublic.Checked = Config.ImageShackSettings.IsPublic;
#endregion
#endregion ImageShack
#region TinyPic
@ -210,7 +210,7 @@ public void LoadSettings()
txtTinyPicUsername.Text = Config.TinyPicUsername;
txtTinyPicPassword.Text = Config.TinyPicPassword;
#endregion
#endregion TinyPic
#region Flickr
@ -221,7 +221,7 @@ public void LoadSettings()
cbFlickrDirectLink.Checked = Config.FlickrSettings.DirectLink;
#endregion
#endregion Flickr
#region Photobucket
@ -245,7 +245,7 @@ public void LoadSettings()
}
}
#endregion
#endregion Photobucket
#region Google Photos
@ -257,7 +257,7 @@ public void LoadSettings()
txtPicasaAlbumID.Text = Config.PicasaAlbumID;
#endregion
#endregion Google Photos
#region Chevereto
@ -267,13 +267,13 @@ public void LoadSettings()
txtCheveretoAPIKey.Text = Config.CheveretoUploader.APIKey;
cbCheveretoDirectURL.Checked = Config.CheveretoDirectURL;
#endregion
#endregion Chevereto
#region vgy.me
txtVgymeUserKey.Text = Config.VgymeUserKey;
#endregion
#endregion vgy.me
#endregion Image uploaders
@ -302,13 +302,13 @@ public void LoadSettings()
txtPastebinTitle.Text = Config.PastebinSettings.Title;
cbPastebinRaw.Checked = Config.PastebinSettings.RawURL;
#endregion
#endregion Pastebin
#region Paste.ee
txtPaste_eeUserAPIKey.Text = Config.Paste_eeUserKey;
#endregion
#endregion Paste.ee
#region Gist
@ -323,14 +323,14 @@ public void LoadSettings()
cbGistUseRawURL.Checked = Config.GistRawURL;
txtGistCustomURL.Text = Config.GistCustomURL;
#endregion
#endregion Gist
#region Upaste
txtUpasteUserKey.Text = Config.UpasteUserKey;
cbUpasteIsPublic.Checked = Config.UpasteIsPublic;
#endregion
#endregion Upaste
#region Hastebin
@ -338,20 +338,20 @@ public void LoadSettings()
txtHastebinSyntaxHighlighting.Text = Config.HastebinSyntaxHighlighting;
cbHastebinUseFileExtension.Checked = Config.HastebinUseFileExtension;
#endregion
#endregion Hastebin
#region OneTimeSecret
txtOneTimeSecretEmail.Text = Config.OneTimeSecretAPIUsername;
txtOneTimeSecretAPIKey.Text = Config.OneTimeSecretAPIKey;
#endregion
#endregion OneTimeSecret
#region Pastie
cbPastieIsPublic.Checked = Config.PastieIsPublic;
#endregion
#endregion Pastie
#endregion Text uploaders
@ -376,7 +376,7 @@ public void LoadSettings()
FTPUpdateEnabledStates();
}
#endregion
#endregion FTP
#region Dropbox
@ -390,7 +390,7 @@ public void LoadSettings()
cbDropboxUseDirectLink.Enabled = Config.DropboxAutoCreateShareableLink;
cbDropboxUseDirectLink.Checked = Config.DropboxUseDirectLink;
#endregion
#endregion Dropbox
#region OneDrive
@ -406,7 +406,7 @@ public void LoadSettings()
lblOneDriveFolderID.Text = Resources.UploadersConfigForm_LoadSettings_Selected_folder_ + " " + Config.OneDriveSelectedFolder.name;
tvOneDrive.CollapseAll();
#endregion
#endregion OneDrive
#region Google Drive
@ -424,13 +424,13 @@ public void LoadSettings()
txtGoogleDriveFolderID.Enabled = Config.GoogleDriveUseFolder;
txtGoogleDriveFolderID.Text = Config.GoogleDriveFolderID;
#endregion
#endregion Google Drive
#region puush
txtPuushAPIKey.Text = Config.PuushAPIKey;
#endregion
#endregion puush
#region Box
@ -443,7 +443,7 @@ public void LoadSettings()
cbBoxShare.Checked = Config.BoxShare;
lblBoxFolderID.Text = Resources.UploadersConfigForm_LoadSettings_Selected_folder_ + " " + Config.BoxSelectedFolder.name;
#endregion
#endregion Box
#region Ge.tt
@ -452,7 +452,7 @@ public void LoadSettings()
lblGe_ttStatus.Text = Resources.UploadersConfigForm_Login_successful;
}
#endregion
#endregion Ge.tt
#region Localhostr
@ -460,7 +460,7 @@ public void LoadSettings()
txtLocalhostrPassword.Text = Config.LocalhostrPassword;
cbLocalhostrDirectURL.Checked = Config.LocalhostrDirectURL;
#endregion
#endregion Localhostr
#region Email
@ -475,7 +475,7 @@ public void LoadSettings()
txtEmailAutomaticSendTo.Enabled = Config.EmailAutomaticSend;
txtEmailAutomaticSendTo.Text = Config.EmailAutomaticSendTo;
#endregion
#endregion Email
#region SendSpace
@ -483,7 +483,7 @@ public void LoadSettings()
txtSendSpacePassword.Text = Config.SendSpacePassword;
txtSendSpaceUserName.Text = Config.SendSpaceUsername;
#endregion
#endregion SendSpace
#region Localhost
@ -503,7 +503,7 @@ public void LoadSettings()
}
}
#endregion
#endregion Localhost
#region Jira
@ -539,13 +539,13 @@ public void LoadSettings()
oAuthJira.Status = OAuthLoginStatus.LoginSuccessful;
}
#endregion
#endregion Jira
#region Mega
MegaConfigureTab(false);
#endregion
#endregion Mega
#region Pushbullet
@ -565,7 +565,7 @@ public void LoadSettings()
}
}
#endregion
#endregion Pushbullet
#region Amazon S3
@ -596,7 +596,7 @@ public void LoadSettings()
cbAmazonS3StripExtensionText.Checked = Config.AmazonS3Settings.RemoveExtensionText;
UpdateAmazonS3Status();
#endregion
#endregion Amazon S3
#region ownCloud / Nextcloud
@ -608,7 +608,7 @@ public void LoadSettings()
cbOwnCloudDirectLink.Checked = Config.OwnCloudDirectLink;
cbOwnCloud81Compatibility.Checked = Config.OwnCloud81Compatibility;
#endregion
#endregion ownCloud / Nextcloud
#region MediaFire
@ -617,7 +617,7 @@ public void LoadSettings()
txtMediaFirePath.Text = Config.MediaFirePath;
cbMediaFireUseLongLink.Checked = Config.MediaFireUseLongLink;
#endregion
#endregion MediaFire
#region Lambda
@ -625,13 +625,13 @@ public void LoadSettings()
cbLambdaUploadURL.Items.AddRange(Lambda.UploadURLs);
cbLambdaUploadURL.SelectedItem = Config.LambdaSettings.UploadURL;
#endregion
#endregion Lambda
#region Lithiio
txtLithiioApiKey.Text = Config.LithiioSettings.UserAPIKey;
#endregion
#endregion Lithiio
#region Pomf
@ -640,7 +640,7 @@ public void LoadSettings()
txtPomfUploadURL.Text = Config.PomfUploader.UploadURL;
txtPomfResultURL.Text = Config.PomfUploader.ResultURL;
#endregion
#endregion Pomf
#region Seafile
@ -657,7 +657,7 @@ public void LoadSettings()
txtSeafileAccInfoEmail.Text = Config.SeafileAccInfoEmail;
txtSeafileAccInfoUsage.Text = Config.SeafileAccInfoUsage;
#endregion
#endregion Seafile
#region Streamable
@ -667,13 +667,13 @@ public void LoadSettings()
txtStreamableUsername.Enabled = txtStreamablePassword.Enabled = !Config.StreamableAnonymous;
cbStreamableUseDirectURL.Checked = Config.StreamableUseDirectURL;
#endregion
#endregion Streamable
#region s-ul
txtSulAPIKey.Text = Config.SulAPIKey;
#endregion
#endregion s-ul
#region Azure Storage
@ -683,7 +683,7 @@ public void LoadSettings()
cbAzureStorageEnvironment.Text = Config.AzureStorageEnvironment;
txtAzureStorageCustomDomain.Text = Config.AzureStorageCustomDomain;
#endregion
#endregion Azure Storage
#region Plik
@ -702,7 +702,7 @@ public void LoadSettings()
txtPlikLogin.ReadOnly = !cbPlikIsSecured.Checked;
txtPlikPassword.ReadOnly = !cbPlikIsSecured.Checked;
#endregion
#endregion Plik
#region Gfycat
@ -717,7 +717,7 @@ public void LoadSettings()
cbGfycatIsPublic.Checked = Config.GfycatIsPublic;
#endregion
#endregion Gfycat
#endregion File uploaders
@ -732,7 +732,7 @@ public void LoadSettings()
oauth2GoogleURLShortener.Status = OAuthLoginStatus.LoginSuccessful;
}
#endregion
#endregion Google URL Shortener
#region bit.ly
@ -743,7 +743,7 @@ public void LoadSettings()
txtBitlyDomain.Text = Config.BitlyDomain;
#endregion
#endregion bit.ly
#region yourls.org
@ -753,20 +753,20 @@ public void LoadSettings()
txtYourlsUsername.Text = Config.YourlsUsername;
txtYourlsPassword.Text = Config.YourlsPassword;
#endregion
#endregion yourls.org
#region adf.ly
txtAdflyAPIKEY.Text = Config.AdFlyAPIKEY;
txtAdflyAPIUID.Text = Config.AdFlyAPIUID;
#endregion
#endregion adf.ly
#region coinurl.com
txtCoinURLUUID.Text = Config.CoinURLUUID;
#endregion
#endregion coinurl.com
#region Polr
@ -775,7 +775,7 @@ public void LoadSettings()
cbPolrIsSecret.Checked = Config.PolrIsSecret;
cbPolrUseAPIv1.Checked = Config.PolrUseAPIv1;
#endregion
#endregion Polr
#endregion URL shorteners
@ -800,13 +800,13 @@ public void LoadSettings()
cbTwitterSkipMessageBox.Checked = Config.TwitterSkipMessageBox;
txtTwitterDefaultMessage.Text = Config.TwitterDefaultMessage;
#endregion
#endregion Twitter
#region Custom uploaders
CustomUploaderLoadTab();
#endregion
#endregion Custom uploaders
#endregion Other uploaders
}

View file

@ -24,10 +24,7 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ShareX.UploadersLib
{

View file

@ -26,7 +26,6 @@ You should have received a copy of the GNU General Public License
using ShareX.HelpersLib;
using ShareX.UploadersLib.Properties;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

View file

@ -47,13 +47,13 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public ImgurAlbumData ImgurSelectedAlbum = null;
public List<ImgurAlbumData> ImgurAlbumList = null;
#endregion
#endregion Imgur
#region ImageShack
public ImageShackOptions ImageShackSettings = new ImageShackOptions();
#endregion
#endregion ImageShack
#region TinyPic
@ -63,41 +63,41 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string TinyPicPassword = "";
public bool TinyPicRememberUserPass = false;
#endregion
#endregion TinyPic
#region Flickr
public OAuthInfo FlickrOAuthInfo = null;
public FlickrSettings FlickrSettings = new FlickrSettings();
#endregion
#endregion Flickr
#region Photobucket
public OAuthInfo PhotobucketOAuthInfo = null;
public PhotobucketAccountInfo PhotobucketAccountInfo = null;
#endregion
#endregion Photobucket
#region Google Photos
public OAuth2Info PicasaOAuth2Info = null;
public string PicasaAlbumID = "";
#endregion
#endregion Google Photos
#region Chevereto
public CheveretoUploader CheveretoUploader = new CheveretoUploader("http://ultraimg.com/api/1/upload", "3374fa58c672fcaad8dab979f7687397");
public bool CheveretoDirectURL = true;
#endregion
#endregion Chevereto
#region vgy.me
public string VgymeUserKey = "";
#endregion
#endregion vgy.me
#endregion Image uploaders
@ -107,13 +107,13 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public PastebinSettings PastebinSettings = new PastebinSettings();
#endregion
#endregion Pastebin
#region Paste.ee
public string Paste_eeUserKey = "";
#endregion
#endregion Paste.ee
#region Gist
@ -123,14 +123,14 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool GistRawURL = false;
public string GistCustomURL = "";
#endregion
#endregion Gist
#region uPaste
public string UpasteUserKey = "";
public bool UpasteIsPublic = false;
#endregion
#endregion uPaste
#region Hastebin
@ -138,20 +138,20 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string HastebinSyntaxHighlighting = "hs";
public bool HastebinUseFileExtension = true;
#endregion
#endregion Hastebin
#region OneTimeSecret
public string OneTimeSecretAPIKey = "";
public string OneTimeSecretAPIUsername = "";
#endregion
#endregion OneTimeSecret
#region Pastie
public bool PastieIsPublic = false;
#endregion
#endregion Pastie
#endregion Text uploaders
@ -167,7 +167,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
// TEMP: For backward compatibility
public DropboxURLType DropboxURLType = DropboxURLType.Default;
#endregion
#endregion Dropbox
#region FTP
@ -176,7 +176,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public int FTPSelectedText = 0;
public int FTPSelectedFile = 0;
#endregion
#endregion FTP
#region OneDrive
@ -184,7 +184,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public OneDriveFileInfo OneDriveSelectedFolder = OneDrive.RootFolder;
public bool OneDriveAutoCreateShareableLink = true;
#endregion
#endregion OneDrive
#region Gfycat
@ -192,7 +192,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public AccountType GfycatAccountType = AccountType.Anonymous;
public bool GfycatIsPublic = false;
#endregion
#endregion Gfycat
#region Google Drive
@ -202,13 +202,13 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool GoogleDriveUseFolder = false;
public string GoogleDriveFolderID = "";
#endregion
#endregion Google Drive
#region puush
public string PuushAPIKey = "";
#endregion
#endregion puush
#region SendSpace
@ -216,7 +216,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string SendSpaceUsername = "";
public string SendSpacePassword = "";
#endregion
#endregion SendSpace
#region Box
@ -224,13 +224,13 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public BoxFileEntry BoxSelectedFolder = Box.RootFolder;
public bool BoxShare = true;
#endregion
#endregion Box
#region Ge.tt
public Ge_ttLogin Ge_ttLogin = null;
#endregion
#endregion Ge.tt
#region Localhostr
@ -238,7 +238,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string LocalhostrPassword = "";
public bool LocalhostrDirectURL = true;
#endregion
#endregion Localhostr
#region Shared folder
@ -247,7 +247,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public int LocalhostSelectedText = 0;
public int LocalhostSelectedFiles = 0;
#endregion
#endregion Shared folder
#region Email
@ -262,7 +262,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool EmailAutomaticSend = false;
public string EmailAutomaticSendTo = "";
#endregion
#endregion Email
#region Jira
@ -270,14 +270,14 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string JiraIssuePrefix = "PROJECT-";
public OAuthInfo JiraOAuthInfo = null;
#endregion
#endregion Jira
#region Mega
public MegaApiClient.AuthInfos MegaAuthInfos = null;
public string MegaParentNodeId = null;
#endregion
#endregion Mega
#region Amazon S3
@ -286,7 +286,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
ObjectPrefix = "ShareX/%y/%mo"
};
#endregion
#endregion Amazon S3
#region ownCloud / Nextcloud
@ -298,7 +298,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool OwnCloudDirectLink = false;
public bool OwnCloud81Compatibility = true;
#endregion
#endregion ownCloud / Nextcloud
#region MediaFire
@ -307,37 +307,37 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string MediaFirePath = "";
public bool MediaFireUseLongLink = false;
#endregion
#endregion MediaFire
#region Pushbullet
public PushbulletSettings PushbulletSettings = new PushbulletSettings();
#endregion
#endregion Pushbullet
#region Lambda
public LambdaSettings LambdaSettings = new LambdaSettings();
#endregion
#endregion Lambda
#region Lithiio
public LithiioSettings LithiioSettings = new LithiioSettings();
#endregion
#endregion Lithiio
#region Pomf
public PomfUploader PomfUploader = new PomfUploader("https://mixtape.moe/upload.php");
#endregion
#endregion Pomf
#region s-ul
public string SulAPIKey = "";
#endregion
#endregion s-ul
#region Seafile
@ -354,7 +354,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string SeafileAccInfoEmail = "";
public string SeafileAccInfoUsage = "";
#endregion
#endregion Seafile
#region Streamable
@ -363,7 +363,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string StreamablePassword = "";
public bool StreamableUseDirectURL = false;
#endregion
#endregion Streamable
#region Azure Storage
@ -373,13 +373,13 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string AzureStorageEnvironment = "blob.core.windows.net";
public string AzureStorageCustomDomain = "";
#endregion
#endregion Azure Storage
#region Plik
public PlikSettings PlikSettings = new PlikSettings();
#endregion
#endregion Plik
#endregion File uploaders
@ -390,14 +390,14 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public OAuth2Info BitlyOAuth2Info = null;
public string BitlyDomain = "";
#endregion
#endregion bit.ly
#region Google URL Shortener
public AccountType GoogleURLShortenerAccountType = AccountType.Anonymous;
public OAuth2Info GoogleURLShortenerOAuth2Info = null;
#endregion
#endregion Google URL Shortener
#region yourls.org
@ -406,20 +406,20 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public string YourlsUsername = "";
public string YourlsPassword = "";
#endregion
#endregion yourls.org
#region adf.ly
public string AdFlyAPIKEY = "";
public string AdFlyAPIUID = "";
#endregion
#endregion adf.ly
#region coinurl.com
public string CoinURLUUID = "";
#endregion
#endregion coinurl.com
#region polr
@ -428,7 +428,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool PolrIsSecret = false;
public bool PolrUseAPIv1 = false;
#endregion
#endregion polr
#endregion URL shorteners
@ -441,7 +441,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public bool TwitterSkipMessageBox = false;
public string TwitterDefaultMessage = "";
#endregion
#endregion Twitter
#region Custom uploaders

View file

@ -21,4 +21,4 @@ that is bundled with the nuget package under the tools folder.
<add key="AWSProfileName" value="" />
-->
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration>

View file

@ -24,7 +24,6 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using ShareX.ScreenCaptureLib;
using System;
using System.Drawing;
using System.Threading;

View file

@ -24,7 +24,6 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using ShareX.ScreenCaptureLib;
using System;
using System.Threading;

View file

@ -23,16 +23,11 @@ You should have received a copy of the GNU General Public License
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ShareX.HelpersLib;
using System.Drawing.Drawing2D;
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace ShareX
{

View file

@ -25,9 +25,6 @@ You should have received a copy of the GNU General Public License
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ShareX
{

View file

@ -28,9 +28,9 @@ You should have received a copy of the GNU General Public License
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Cache;
using System.Linq;
namespace ShareX
{

View file

@ -29,4 +29,4 @@ that is bundled with the nuget package under the tools folder.
<add key="AWSProfileName" value="" />
-->
</appSettings>
</configuration>
</configuration>