Ejemplo n.º 1
0
        public void LoadLane(LaneDocument laneDocument)
        {
            var lane = new Lane(laneDocument.Title, _cardDatabaseService, GlobalToolTip, laneDocument.ProjectId)
            {
                Height = this.Height - 20, Id = laneDocument.Id
            };

            lane.LaneRequestingTitleChanged += LaneLaneRequestingTitleChanged;
            lane.LaneRequestingDelete       += Lane_LaneRequestingDelete;
            lane.LaneRequestingAddLane      += Lane_LaneRequestingAddLane;
            lane.LaneRequestingAddCard      += Lane_LaneRequestingAddCard;
            lane.LaneRequestingEditCardLane += Lane_LaneRequestingEditCardLane;
            LanesCollection.Add(lane);
            _layoutPanel.Controls.Add(lane);
            LoadCards(lane, GlobalToolTip);
            lane.Focus();
        }
Ejemplo n.º 2
0
        public void AddLane(int projectId, string projectName, string laneLabel)
        {
            var lane = new Lane(laneLabel, _cardDatabaseService, GlobalToolTip, projectId)
            {
                Height = this.Height - 20
            };

            lane.LaneRequestingTitleChanged += LaneLaneRequestingTitleChanged;
            lane.LaneRequestingDelete       += Lane_LaneRequestingDelete;
            lane.LaneRequestingAddLane      += Lane_LaneRequestingAddLane;
            lane.LaneRequestingAddCard      += Lane_LaneRequestingAddCard;
            lane.LaneRequestingEditCardLane += Lane_LaneRequestingEditCardLane;
            lane.Id = _lanesDatabaseService.Insert(laneLabel, projectId);
            LanesCollection.Add(lane);
            _layoutPanel.Controls.Add(lane);
            lane.Focus();
        }