Esempio n. 1
0
        private static void SetupAdministrativeConsoleBlocks()
        {
            BusinessAccountsBlock = new Block
            {
                Id = BlockConstants.BusinessAccountsBlockId,
                Name = "Business Accounts",
                Color = "black",
                IconUrl = "img/businessAccounts.png",
                HoverIconUrl = "img/businessAccountsColor.png",
                IsSilverlight = true
            };

            ServiceTemplatesBlock = new Block
            {
                Id = BlockConstants.ServiceTemplatesBlockId,
                Name = "Service Templates",
                Color = "green",
                HideFromNavigation = true,
                IsSilverlight = true
            };

            AdministrativeConsoleBlocks = new List<Block> { BusinessAccountsBlock };
        }
Esempio n. 2
0
        private static void SetupRegularBlocks()
        {
            ClientsBlock = new Block
            {
                Id = BlockConstants.ClientBlockId,
                Name = "Clients",
                Color = "blue",
                IconUrl = "img/clients.png",
                HoverIconUrl = "img/clientsColor.png",
                IsSilverlight = true
            };

            DispatcherBlock = new Block
            {
                Id = BlockConstants.DispatcherBlockId,
                Name = "Dispatcher",
                Color = "green",
                IconUrl = "img/dispatcher.png",
                HoverIconUrl = "img/dispatcherColor.png",
                IsSilverlight = true
            };

            EmployeesBlock = new Block
            {
                Id = BlockConstants.EmployeesBlockId,
                Name = "Employees",
                Color = "red",
                IconUrl = "img/employees.png",
                HoverIconUrl = "img/employeesColor.png",
                IsSilverlight = true
            };

            SupportBlock = new Block
            {
                Id = BlockConstants.SupportBlockId,
                Name = "Support",
                Color = "blue",
                IconUrl = "img/uservoice.png",
                HoverIconUrl = "img/uservoiceColor.png"
            };

            ImportDataBlock = new Block
            {
                Id = BlockConstants.ImportDataBlockId,
                Name = "Import Data",
                Color = "black",
                HideFromNavigation = true,
                IsSilverlight = true
            };

            LocationsBlock = new Block
            {
                Id = BlockConstants.LocationsBlockId,
                Name = "Locations",
                Color = "orange",
                IconUrl = "img/locations.png",
                HoverIconUrl = "img/locationsColor.png",
                IsSilverlight = true,
                HideFromNavigation = false
            };

            RegionsBlock = new Block
            {
                Id = BlockConstants.RegionsBlockId,
                Name = "Regions",
                Color = "orange",
                IconUrl = "img/regions.png",
                HoverIconUrl = "img/regionsColor.png",
                IsSilverlight = true
            };

            ServicesBlock = new Block
            {
                Id = BlockConstants.ServicesBlockId,
                Name = "Services",
                Color = "green",
                IconUrl = "img/services.png",
                HoverIconUrl = "img/servicesColor.png",
                Url = "#view/services.html"
            };

            VehiclesBlock = new Block
            {
                Id = BlockConstants.VehiclesBlockId,
                Name = "Vehicles",
                Color = "red",
                IconUrl = "img/vehicles.png",
                HoverIconUrl = "img/vehiclesColor.png",
                IsSilverlight = true
            };

            VehicleMaintenanceBlock = new Block
            {
                Id = BlockConstants.VehicleMaintenanceBlockId,
                Name = "Vehicle Maintenance",
                Color = "red",
                HideFromNavigation = true,
                IsSilverlight = true
            };

            RegularBlocks = new List<Block>
            {
               ClientsBlock,
               DispatcherBlock,
               EmployeesBlock,
               SupportBlock,
               ImportDataBlock, 
               LocationsBlock,
               RegionsBlock,
               ServicesBlock,
               EmployeesBlock,
               VehiclesBlock,
               VehicleMaintenanceBlock
            };
        }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Blocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlocks(Block block)
 {
     base.AddObject("Blocks", block);
 }
Esempio n. 4
0
        private static void SetupMobileBlocks()
        {
            RoutesBlock = new Block
            {
                Id = BlockConstants.RoutesBlockId,
                Color = "green",
                Name = "Routes",
                IconUrl = "img/routes.png",
                HoverIconUrl = "img/routesColor.png",
                Url = "#view/routes.html"
            };

            //RoutesBlock is hidden for now
            MobileBlocks = new List<Block> { RoutesBlock };
        }
Esempio n. 5
0
 /// <summary>
 /// Create a new Block object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="color">Initial value of the Color property.</param>
 /// <param name="hideFromNavigation">Initial value of the HideFromNavigation property.</param>
 public static Block CreateBlock(global::System.Guid id, global::System.String name, global::System.String color, global::System.Boolean hideFromNavigation)
 {
     Block block = new Block();
     block.Id = id;
     block.Name = name;
     block.Color = color;
     block.HideFromNavigation = hideFromNavigation;
     return block;
 }