atlassian.net-sdk-v2.0 /WebSample/App_Code/IssuesGridView.cs

Language C# Lines 56
MD5 Hash 233217cdc1fe44a5ad5c1ea99c39acf2 Estimated Cost $1,065 (why?)
Repository https://bitbucket.org/yyo/atlassian.net-sdk-v2.0.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Drawing;

namespace Atlassian.Jira.Web
{
    public class IssuesGridView: GridView
    {
        public IssuesGridView()
        {
            this.EnableViewState = false;
            this.Width = Unit.Percentage(100);

            PrepareColumns();
            PrepareStyles();
        }

        private void PrepareColumns()
        {
            this.AutoGenerateColumns = false;
            this.Columns.Add(new BoundField() { HeaderText = "Project", DataField = "Project" });
            this.Columns.Add(new BoundField() { HeaderText = "Key", DataField = "Key" });
            this.Columns.Add(new BoundField() { HeaderText = "Summary", DataField = "Summary" });
            this.Columns.Add(new BoundField() { HeaderText = "Description", DataField = "Description" });
            this.Columns.Add(new BoundField() { HeaderText = "Environment", DataField = "Environment" });
            this.Columns.Add(new BoundField() { HeaderText = "Assignee", DataField = "Assignee" });
            this.Columns.Add(new BoundField() { HeaderText = "Votes", DataField = "Votes" });
            this.Columns.Add(new BoundField() { HeaderText = "Status", DataField = "Status" });
            this.Columns.Add(new BoundField() { HeaderText = "Type", DataField = "Type" });
        }

        private void PrepareStyles()
        {
            this.CellPadding = 4;
            this.ForeColor = ColorTranslator.FromHtml("#333333");
            this.GridLines = System.Web.UI.WebControls.GridLines.None;

            this.AlternatingRowStyle.BackColor = Color.White;
            this.AlternatingRowStyle.ForeColor = ColorTranslator.FromHtml("#284775");

            this.HeaderStyle.BackColor = ColorTranslator.FromHtml("#5D7B9D");
            this.HeaderStyle.Font.Bold = true;
            this.HeaderStyle.ForeColor = Color.White;

            this.RowStyle.BackColor = ColorTranslator.FromHtml("#F7F6F3");
            this.RowStyle.ForeColor = ColorTranslator.FromHtml("#333333");

            this.RowStyle.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Center;

        }
    }
}
Back to Top