Minor UI improvement

This commit is contained in:
niksedk 2021-08-23 08:59:18 +02:00
parent a92f291844
commit 797a26b0d9
2 changed files with 13 additions and 2 deletions

View File

@ -54,6 +54,7 @@
this.listViewAttachments.TabIndex = 1;
this.listViewAttachments.UseCompatibleStateImageBehavior = false;
this.listViewAttachments.View = System.Windows.Forms.View.Details;
this.listViewAttachments.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listViewAttachments_MouseDoubleClick);
//
// columnHeaderFileName
//
@ -95,7 +96,7 @@
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// ChooseFontName
// ChooseAssaFontName
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@ -107,7 +108,7 @@
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(574, 331);
this.Name = "ChooseFontName";
this.Name = "ChooseAssaFontName";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -74,5 +74,15 @@ namespace Nikse.SubtitleEdit.Forms.Assa
buttonOK_Click(null, null);
}
}
private void listViewAttachments_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (listViewAttachments.SelectedItems.Count == 0)
{
return;
}
buttonOK_Click(null, null);
}
}
}