Exemplo n.º 1
0
        public ApproverForm()
        {
            InitializeComponent();
            expenseGrid.AutoGenerateColumns = false;
            _upc = new ApproverUserProcess();

            this.Text = string.Format(FORM_TITLE);

            roleBox.Items.AddRange(_upc.GetRoles());

            LoadExpenses();
        }
Exemplo n.º 2
0
        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();
            }
        }