Esempio n. 1
0
        private void FillGridServices()
        {
            _listServices = ResellerServices.GetServicesForReseller(_resellerCur.ResellerNum);
            gridServices.BeginUpdate();
            gridServices.ListGridColumns.Clear();
            GridColumn col = new GridColumn("Description", 180);

            gridServices.ListGridColumns.Add(col);
            col           = new GridColumn("Fee", 0);
            col.TextAlign = HorizontalAlignment.Right;
            gridServices.ListGridColumns.Add(col);
            gridServices.ListGridRows.Clear();
            GridRow row;

            for (int i = 0; i < _listServices.Count; i++)
            {
                row = new GridRow();
                row.Cells.Add(ProcedureCodes.GetLaymanTerm(_listServices[i].CodeNum));
                row.Cells.Add(_listServices[i].Fee.ToString("F"));
                gridServices.ListGridRows.Add(row);
            }
            gridServices.EndUpdate();
            //The Available Services grid has changed, re-evaluate the bundle requirement label visibility.
            labelBundleRequired.Visible = IsBundleMissing();
        }
Esempio n. 2
0
        private void FillGridServices()
        {
            ListServices = ResellerServices.GetServicesForReseller(ResellerCur.ResellerNum);
            gridServices.BeginUpdate();
            gridServices.Columns.Clear();
            ODGridColumn col = new ODGridColumn("Description", 180);

            gridServices.Columns.Add(col);
            col           = new ODGridColumn("Fee", 0);
            col.TextAlign = HorizontalAlignment.Right;
            gridServices.Columns.Add(col);
            gridServices.Rows.Clear();
            ODGridRow row;

            for (int i = 0; i < ListServices.Count; i++)
            {
                row = new ODGridRow();
                row.Cells.Add(ProcedureCodes.GetLaymanTerm(ListServices[i].CodeNum));
                row.Cells.Add(ListServices[i].Fee.ToString("F"));
                gridServices.Rows.Add(row);
            }
            gridServices.EndUpdate();
        }