Add weight limit to scale

This commit is contained in:
2023-04-26 19:17:35 +02:00
parent 0621716636
commit ee5bda2fe3
4 changed files with 15 additions and 3 deletions

View File

@ -47,8 +47,9 @@ namespace Elwig {
var cnx = s[3];
var empty = s[4];
var filling = s[5];
int? limit = s[6] == null ? null : int.Parse(s[6]);
if (type == "systec") {
list.AddLast(new SystecScale(scaleNr, model, cnx, empty, filling));
list.AddLast(new SystecScale(scaleNr, model, cnx, empty, filling, limit));
}
} catch (Exception e) {
MessageBox.Show($"Unable to create scale {s[0]}:\n\n{e.Message}", "Scale Error", MessageBoxButton.OK, MessageBoxImage.Error);