示例#1
0
        public Grid GetBacklogGrid(Button button)
        {
            Grid       grid      = new Grid();
            StackPanel leftPanel = new StackPanel()
            {
                Orientation         = Orientation.Horizontal,
                HorizontalAlignment = HorizontalAlignment.Left
            };

            leftPanel.Children.Add(GetKeyLabel(false));
            leftPanel.Children.Add(GetNameLabel());
            grid.Children.Add(leftPanel);

            StackPanel rightPanel = new StackPanel()
            {
                Orientation         = Orientation.Horizontal,
                HorizontalAlignment = HorizontalAlignment.Right
            };

            rightPanel.Children.Add(Priority.GetPanel());
            rightPanel.Children.Add(User.PanelShortName);
            rightPanel.Children.Add(button);

            grid.Children.Add(rightPanel);

            return(grid);
        }
示例#2
0
        public Grid GetInfoGrid()
        {
            Grid grid = new Grid();

            grid.Children.Add(Priority.GetPanel());
            grid.Children.Add(User.PanelShortName);
            return(grid);
        }