formatowanie kodu
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Haftmittel
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user