Skip to content

Commit 098dc5e

Browse files
author
Kabuto_W
committed
Add size grip to form.
1 parent ebbe2b8 commit 098dc5e

File tree

5 files changed

+346
-131
lines changed

5 files changed

+346
-131
lines changed

SimilarImages/SimilarImages/Form1.Designer.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SimilarImages/SimilarImages/Form1.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public Form1()
3131
private void Form1_SizeChanged(object sender, EventArgs e)
3232
{
3333
pnl_Image1.Width = pnl_Main.Width / 2;
34+
lvw_Result.Columns[0].Width = lvw_Result.Width;
3435
}
3536

3637
#region Config
@@ -218,7 +219,7 @@ private void bgw_Calculate_RunWorkerCompleted(object sender, RunWorkerCompletedE
218219
lvw_Result.Items.Clear();
219220
progressBar1.Visible = false;
220221
btn_Process.Enabled = true;
221-
if (tuples == null)
222+
if (tuples == null || tuples.Count == 0)
222223
{
223224
lvw_Result.Items.Add("No result");
224225
return;

0 commit comments

Comments
 (0)