public LanesContainer(ILanesDatabaseService lanesDatabaseService, ICardDatabaseService cardDatabaseService)
        {
            SetupToolTip();
            InitializeComponent();
            _lanesDatabaseService = lanesDatabaseService;
            _cardDatabaseService  = cardDatabaseService;
            this.Dock             = DockStyle.Fill;
            var mainLayoutPanel = new TableLayoutPanel()
            {
                Dock = DockStyle.Fill,
                Size = new Size(400, 800)
            };
            var row1        = new RowStyle(SizeType.Absolute, 50);
            var row2        = new RowStyle(SizeType.Percent, 100);
            var columnStyle = new ColumnStyle(SizeType.Percent, 100);

            mainLayoutPanel.RowStyles.Add(row1);
            mainLayoutPanel.RowStyles.Add(row2);
            mainLayoutPanel.ColumnStyles.Add(columnStyle);
            mainLayoutPanel.Controls.Add(BuildMainMenu(), 0, 0);


            LanesCollection = new List <Lane>();
            _layoutPanel    = new FlowLayoutPanel
            {
                FlowDirection    = FlowDirection.LeftToRight, Dock = DockStyle.Fill, WrapContents = false,
                HorizontalScroll = { Enabled = true }, AutoScroll = true,
                Size             = new Size(this.Width, 800)
            };
            this.Controls.Add(_layoutPanel);
            this.Resize += LanesContainer_Resize;

            mainLayoutPanel.Controls.Add(_layoutPanel, 0, 1);
            this.Controls.Add(mainLayoutPanel);
        }
Beispiel #2
0
 public Lane(string laneLabel, ICardDatabaseService cardDatabaseService, ToolTip globalToolTip, int projectId)
 {
     _cardDatabaseService = cardDatabaseService;
     _globalToolTip       = globalToolTip;
     this.ProjectId       = projectId;
     BuildLane(laneLabel);
 }
Beispiel #3
0
        public Container(ILanesContainer lanes, ICardDatabaseService cardDatabaseService,
                         ILanesDatabaseService lanesDatabaseService, IProjectDatabaseService projectDatabaseService) : base()
        {
            _lanes = lanes;
            _cardDatabaseService    = cardDatabaseService;
            _lanesDatabaseService   = lanesDatabaseService;
            _projectDatabaseService = projectDatabaseService;
            InitializeComponent();
            //Build a container
            this.Text = "Wall";
            OpenProjectDialog();
            ((UserControl)lanes).Dock = DockStyle.Fill;
            ((LanesContainer)lanes).LaneContainerRequestingNewProject += Container_LaneContainerRequestingNewProject;
            Controls.Add((UserControl)lanes);
            //Insert context menu  to container
            var contextMenu = BuildContextMenu();

            contextMenu.Show();
        }