From a3ffdaa718b5d3f746dcdc449a09e808508f99dc Mon Sep 17 00:00:00 2001 From: ali_akhavanrad_geeksltd Date: Sun, 26 Feb 2023 02:38:21 +0000 Subject: [PATCH] add box columns count to the board box content --- Olive.Mvc.Microservices/Navigation/Board/BoardBox.cs | 6 ++++++ Olive.Mvc.Microservices/Navigation/Board/BoardBoxContent.cs | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Olive.Mvc.Microservices/Navigation/Board/BoardBox.cs b/Olive.Mvc.Microservices/Navigation/Board/BoardBox.cs index 8b9ca6afe..d4a6619b5 100644 --- a/Olive.Mvc.Microservices/Navigation/Board/BoardBox.cs +++ b/Olive.Mvc.Microservices/Navigation/Board/BoardBox.cs @@ -26,12 +26,18 @@ public class BoardBox /// internal string Title { get; set; } + /// + /// The count of columns of the box + /// + internal int ColumnsCount { get; set; } + public void Add(Action action) => action(this); BoardBoxContent Add(BoardBoxContent content) { content.BoxColour = Colour; content.BoxTitle = Title; + content.BoxColumnsCount = ColumnsCount; Navigation.BoardContents.Add(content); return content; } diff --git a/Olive.Mvc.Microservices/Navigation/Board/BoardBoxContent.cs b/Olive.Mvc.Microservices/Navigation/Board/BoardBoxContent.cs index 69a5e8bda..904f2d6eb 100644 --- a/Olive.Mvc.Microservices/Navigation/Board/BoardBoxContent.cs +++ b/Olive.Mvc.Microservices/Navigation/Board/BoardBoxContent.cs @@ -16,5 +16,10 @@ public class BoardBoxContent /// Type of the item /// public string BoxTitle { get; set; } + + /// + /// The count of columns of the box + /// + internal int BoxColumnsCount { get; set; } } } \ No newline at end of file