public ApproverForm() { InitializeComponent(); expenseGrid.AutoGenerateColumns = false; _upc = new ApproverUserProcess(); this.Text = string.Format(FORM_TITLE); roleBox.Items.AddRange(_upc.GetRoles()); LoadExpenses(); }
protected void Page_Load(object sender, EventArgs e) { _upc = new ApproverUserProcess(); if (!IsPostBack) { // Populate roles. string[] roles = _upc.GetRoles(); for (int i = 0; i < roles.Length; i++) { roleBox.Items.Insert(i, roles[i].ToString()); } LoadExpenses(); } }