Use custom listview control to allow sorting Imgur album columns, also fills last column

This commit is contained in:
Jaex 2019-10-03 16:13:38 +03:00
parent a74d7228c1
commit 5b29882297
2 changed files with 3574 additions and 9030 deletions

View file

@ -273,6 +273,7 @@ private void InitializeComponent()
this.txtAzureStorageCustomDomain = new System.Windows.Forms.TextBox();
this.lblAzureStorageCustomDomain = new System.Windows.Forms.Label();
this.tpBackblazeB2 = new System.Windows.Forms.TabPage();
this.lblB2UrlPreview = new System.Windows.Forms.Label();
this.lblB2ManageLink = new System.Windows.Forms.LinkLabel();
this.lblB2UrlPreviewLabel = new System.Windows.Forms.Label();
this.lblB2Bucket = new System.Windows.Forms.Label();
@ -540,7 +541,7 @@ 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.lvImgurAlbumList = new System.Windows.Forms.ListView();
this.lvImgurAlbumList = new ShareX.HelpersLib.MyListView();
this.chImgurID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.chImgurTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.chImgurDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
@ -622,7 +623,6 @@ private void InitializeComponent()
this.oauthTeknik = new ShareX.UploadersLib.OAuthControl();
this.oauth2YouTube = new ShareX.UploadersLib.OAuthControl();
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
this.lblB2UrlPreview = new System.Windows.Forms.Label();
this.tpOtherUploaders.SuspendLayout();
this.tcOtherUploaders.SuspendLayout();
this.tpTwitter.SuspendLayout();
@ -2324,6 +2324,11 @@ private void InitializeComponent()
resources.ApplyResources(this.tpBackblazeB2, "tpBackblazeB2");
this.tpBackblazeB2.Name = "tpBackblazeB2";
//
// lblB2UrlPreview
//
resources.ApplyResources(this.lblB2UrlPreview, "lblB2UrlPreview");
this.lblB2UrlPreview.Name = "lblB2UrlPreview";
//
// lblB2ManageLink
//
resources.ApplyResources(this.lblB2ManageLink, "lblB2ManageLink");
@ -4265,12 +4270,13 @@ private void InitializeComponent()
//
// lvImgurAlbumList
//
this.lvImgurAlbumList.AllowColumnSort = true;
this.lvImgurAlbumList.AutoFillColumn = true;
this.lvImgurAlbumList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.chImgurID,
this.chImgurTitle,
this.chImgurDescription});
this.lvImgurAlbumList.FullRowSelect = true;
this.lvImgurAlbumList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.lvImgurAlbumList.HideSelection = false;
resources.ApplyResources(this.lvImgurAlbumList, "lvImgurAlbumList");
this.lvImgurAlbumList.MultiSelect = false;
@ -4867,11 +4873,6 @@ private void InitializeComponent()
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
//
// lblB2UrlPreview
//
resources.ApplyResources(this.lblB2UrlPreview, "lblB2UrlPreview");
this.lblB2UrlPreview.Name = "lblB2UrlPreview";
//
// UploadersConfigForm
//
resources.ApplyResources(this, "$this");
@ -5169,7 +5170,7 @@ private void InitializeComponent()
private System.Windows.Forms.TabPage tpImageUploaders;
private System.Windows.Forms.TabControl tcImageUploaders;
private OAuthControl oauth2Imgur;
private System.Windows.Forms.ListView lvImgurAlbumList;
private ShareX.HelpersLib.MyListView lvImgurAlbumList;
private System.Windows.Forms.ColumnHeader chImgurID;
private System.Windows.Forms.ColumnHeader chImgurTitle;
private System.Windows.Forms.ColumnHeader chImgurDescription;

File diff suppressed because it is too large Load diff