aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:14:56 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:14:56 +0300
commit35930ebda47f6f68ad549f8ad67b38c0b9a7f60b (patch)
tree483150927c0fb83653bd36dba83bc48a8467b630 /src
parent722de64dadd29744972ec5c5eca228f7a2e326e5 (diff)
Do not show missing dialog on empty missing list
Diffstat (limited to 'src')
-rw-r--r--src/PriceListTools/PriceListTool.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/PriceListTools/PriceListTool.cs b/src/PriceListTools/PriceListTool.cs
index 918b6de..c8df005 100644
--- a/src/PriceListTools/PriceListTool.cs
+++ b/src/PriceListTools/PriceListTool.cs
@@ -82,12 +82,14 @@ namespace RehauSku.PriceListTools
}
}
- string values = string.Join("\n", missing.Select(kvp => kvp.Key).ToArray());
- System.Windows.Forms.MessageBox.Show
- ($"{missing.Count} артикулов отсутствует в таблице заказов {RegistryUtil.PriceListPath}",
- "Отсутствует позиция в конечной таблице заказов",
- System.Windows.Forms.MessageBoxButtons.OK,
- System.Windows.Forms.MessageBoxIcon.Information);
+ if (missing.Count > 0)
+ {
+ System.Windows.Forms.MessageBox.Show
+ ($"{missing.Count} артикулов отсутствует в таблице заказов {RegistryUtil.PriceListPath}",
+ "Отсутствует позиция в конечной таблице заказов",
+ System.Windows.Forms.MessageBoxButtons.OK,
+ System.Windows.Forms.MessageBoxIcon.Information);
+ }
}
protected private void FilterByAmount()