AreaComAdminWindow: Add min height and width to window

This commit is contained in:
2023-11-30 01:32:57 +01:00
parent 08108f0c18
commit 47950afb67
2 changed files with 3 additions and 2 deletions

View File

@ -69,8 +69,9 @@ namespace Elwig.Windows {
StatusAreaCommitments.Text = $"Flächenbindungen: {areaComs.Count}";
StatusArea.Text = $"Fläche: {areaComs.Select(a => a.Area).Sum():N0} m²";
}
var groups = areaComs.GroupBy(a => a.AreaComType.DisplayName).Select(a => (a.Key, a.Sum(b => b.Area))).OrderByDescending(a => a.Item2).ToList();
var groups = areaComs.GroupBy(a => $"{a.AreaComType.SortId}{a.AreaComType.AttrId}").Select(a => (a.Key, a.Sum(b => b.Area))).OrderByDescending(a => a.Item2).ToList();
StatusContracts.Text = $"Vertragsarten: {groups.Count} (" + string.Join(", ", groups.Select(g => $"{g.Key}: {g.Item2:N0} m²")) + ")";
groups = areaComs.GroupBy(a => a.AreaComType.DisplayName).Select(a => (a.Key, a.Sum(b => b.Area))).OrderByDescending(a => a.Item2).ToList();
StatusContracts.ToolTip = $"Vertragsarten: {groups.Count}\n" + string.Join($"\n", groups.Select(g => $"{g.Key}: {g.Item2:N0} m²"));
}