formatowanie kodu

This commit is contained in:
2025-10-31 15:13:00 +01:00
parent 0f0a78954c
commit 4e105915cc
3 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ namespace Haftmittel
}
catch (Exception ex)
{
MessageBox.Show(string.Format("Problem z tabelą {0}, błąd {1}", _dtH.TableName, ex.Message));
MessageBox.Show($"Problem z tabelą {_dtH.TableName}, błąd {ex.Message}");
}
// comboBoxy ze składnikami

View File

@@ -37,7 +37,7 @@ namespace Haftmittel
else
{
return false;
}
}
}
else
{

View File

@@ -109,7 +109,7 @@ namespace Haftmittel
}
catch (Exception)
{
MessageBox.Show(string.Format("Problemy z otwarciem lub zawartością pliku {0}", nazwa));
MessageBox.Show($"Problemy z otwarciem lub zawartością pliku {nazwa}");
return false;
}
@@ -153,7 +153,7 @@ namespace Haftmittel
private void ComboBox_KeyDown(object sender, KeyEventArgs e)
{
ObservableCollection<ClassSkladnik> lc = ((sender as ComboBox).ItemsSource as ObservableCollection<ClassSkladnik>);
ObservableCollection<ClassSkladnik> lc = (sender as ComboBox).ItemsSource as ObservableCollection<ClassSkladnik>;
ClassSkladnik c = lc.Where(x => x.Kod.ToUpper().StartsWith(e.Key.ToString().Last().ToString())).FirstOrDefault();