diff --git a/usa-elections/Pages/ElectionBar.razor b/usa-elections/Pages/ElectionBar.razor index a9eedd0..68db327 100644 --- a/usa-elections/Pages/ElectionBar.razor +++ b/usa-elections/Pages/ElectionBar.razor @@ -110,7 +110,7 @@ @code { - RenderFragment CreateTooltip(DataContext context) + RenderFragment CreateTooltip(IgbDataContext context) { var brush = ""; var votes = ""; @@ -171,8 +171,8 @@ public List DisplayCandidates { get; set; } - private DataChart BarChart; - public DataChart BarChartRef + private IgbDataChart BarChart; + public IgbDataChart BarChartRef { get { return BarChart; } set { BarChart = value; this.OnChanged(); } @@ -236,16 +236,16 @@ base.OnInitialized(); Logger.WriteLine("ElectionBar OnInitialized"); - DataChartCoreModule.Register(IgniteUIBlazor); //DataChartCategoryCoreModule.Register(IgniteUIBlazor); - DataChartCategoryModule.Register(IgniteUIBlazor); - DataChartInteractivityModule.Register(IgniteUIBlazor); - DataChartVerticalCategoryModule.Register(IgniteUIBlazor); - NumberAbbreviatorModule.Register(IgniteUIBlazor); - ItemToolTipLayerModule.Register(IgniteUIBlazor); - CategoryToolTipLayerModule.Register(IgniteUIBlazor); + IgbDataChartCoreModule.Register(IgniteUIBlazor); //DataChartCategoryCoreModule.Register(IgniteUIBlazor); + IgbDataChartCategoryModule.Register(IgniteUIBlazor); + IgbDataChartInteractivityModule.Register(IgniteUIBlazor); + IgbDataChartVerticalCategoryModule.Register(IgniteUIBlazor); + IgbNumberAbbreviatorModule.Register(IgniteUIBlazor); + IgbItemToolTipLayerModule.Register(IgniteUIBlazor); + IgbCategoryToolTipLayerModule.Register(IgniteUIBlazor); - LegendModule.Register(IgniteUIBlazor); - ItemLegendModule.Register(IgniteUIBlazor); + IgbLegendModule.Register(IgniteUIBlazor); + IgbItemLegendModule.Register(IgniteUIBlazor); } protected override async Task OnInitializedAsync() diff --git a/usa-elections/Pages/ElectionBubbles.razor b/usa-elections/Pages/ElectionBubbles.razor index 591dbd3..3e38b60 100644 --- a/usa-elections/Pages/ElectionBubbles.razor +++ b/usa-elections/Pages/ElectionBubbles.razor @@ -45,9 +45,9 @@ private bool IsMapReady = false; - private GeographicSymbolSeries BubbleSeries; - private GeographicMap BubbleMap; - public GeographicMap BubbleMapRef + private IgbGeographicSymbolSeries BubbleSeries; + private IgbGeographicMap BubbleMap; + public IgbGeographicMap BubbleMapRef { get { return BubbleMap; } set { BubbleMap = value; this.OnChanged("BubbleMap"); } @@ -112,8 +112,8 @@ { Logger.WriteLine("ElectionBubbles OnInitialized"); - DataChartInteractivityModule.Register(IgniteUIBlazor); - GeographicMapModule.Register(IgniteUIBlazor); + IgbDataChartInteractivityModule.Register(IgniteUIBlazor); + IgbGeographicMapModule.Register(IgniteUIBlazor); } public static Dictionary StateLocations { get; set; } @@ -183,7 +183,7 @@ this.IsMapReady = true; if (this.BubbleMap != null) { - this.BubbleSeries = (GeographicSymbolSeries)this.BubbleMap.ActualSeries[0]; + this.BubbleSeries = (IgbGeographicSymbolSeries)this.BubbleMap.ActualSeries[0]; } OnChanged("RenderAsync"); diff --git a/usa-elections/Pages/ElectionChart.razor b/usa-elections/Pages/ElectionChart.razor index 936fe3a..b0a82d9 100644 --- a/usa-elections/Pages/ElectionChart.razor +++ b/usa-elections/Pages/ElectionChart.razor @@ -128,7 +128,7 @@ @code { - RenderFragment CreateTooltip(DataContext context) + RenderFragment CreateTooltip(IgbDataContext context) { var brush = ""; var votes = ""; @@ -188,8 +188,8 @@ public double DisplayMax { get { return DisplayMode == ElectionDisplayMode.Electoral ? Election.TotalElectors : Election.TotalVotes; } } - private DataChart BarChart; - public DataChart BarChartRef + private IgbDataChart BarChart; + public IgbDataChart BarChartRef { get { return BarChart; } set { BarChart = value; this.OnChanged(); } @@ -229,18 +229,18 @@ base.OnInitialized(); Logger.WriteLine("ElectionChart OnInitialized"); - DataChartCoreModule.Register(IgniteUIBlazor); - DataChartCategoryModule.Register(IgniteUIBlazor); - DataChartInteractivityModule.Register(IgniteUIBlazor); - DataChartVerticalCategoryModule.Register(IgniteUIBlazor); - NumberAbbreviatorModule.Register(IgniteUIBlazor); - ItemToolTipLayerModule.Register(IgniteUIBlazor); - CategoryToolTipLayerModule.Register(IgniteUIBlazor); + IgbDataChartCoreModule.Register(IgniteUIBlazor); + IgbDataChartCategoryModule.Register(IgniteUIBlazor); + IgbDataChartInteractivityModule.Register(IgniteUIBlazor); + IgbDataChartVerticalCategoryModule.Register(IgniteUIBlazor); + IgbNumberAbbreviatorModule.Register(IgniteUIBlazor); + IgbItemToolTipLayerModule.Register(IgniteUIBlazor); + IgbCategoryToolTipLayerModule.Register(IgniteUIBlazor); - DataChartScatterModule.Register(IgniteUIBlazor); + IgbDataChartScatterModule.Register(IgniteUIBlazor); - LegendModule.Register(IgniteUIBlazor); - ItemLegendModule.Register(IgniteUIBlazor); + IgbLegendModule.Register(IgniteUIBlazor); + IgbItemLegendModule.Register(IgniteUIBlazor); } protected override async Task OnInitializedAsync() diff --git a/usa-elections/Pages/ElectionGrid.razor b/usa-elections/Pages/ElectionGrid.razor index 3909643..821d90b 100644 --- a/usa-elections/Pages/ElectionGrid.razor +++ b/usa-elections/Pages/ElectionGrid.razor @@ -12,7 +12,6 @@ { StatesLookup; protected override Task OnAfterRenderAsync(bool firstRender) @@ -55,15 +55,15 @@ if (this.HexMap != null) { - HexSeries = (GeographicShapeSeries)this.HexMap.ActualSeries[0]; + HexSeries = (IgbGeographicShapeSeries)this.HexMap.ActualSeries[0]; HexSeries.ShapefileDataSource = ( - new ShapeDataSource() { + new IgbShapeDataSource() { Name="hexSeries", //ImportCompletedScript = "onHexImportCompleted", ShapefileSource = "shapes/usa_states_hex_map.shp", DatabaseSource = "shapes/usa_states_hex_map.dbf", - ImportCompleted = new EventCallback(null, - (Func)OnImportCompleted) + ImportCompleted = new EventCallback(null, + (Func)OnImportCompleted) } ); } @@ -71,7 +71,7 @@ return base.OnAfterRenderAsync(firstRender); } - protected async Task OnImportCompleted(AsyncCompletedEventArgs args) + protected async Task OnImportCompleted(IgbAsyncCompletedEventArgs args) { Console.WriteLine("ElectionHex Shapes Importing... done"); @@ -265,7 +265,7 @@ set { _DisplayMode = value; this.OnChanged("DisplayMode=" + value); } } - RenderFragment CreateTooltip(DataContext context) + RenderFragment CreateTooltip(IgbDataContext context) { return @
name
diff --git a/usa-elections/Pages/ElectionSelector.razor b/usa-elections/Pages/ElectionSelector.razor index c37b900..b154b70 100644 --- a/usa-elections/Pages/ElectionSelector.razor +++ b/usa-elections/Pages/ElectionSelector.razor @@ -8,7 +8,6 @@ elections; [Parameter] @@ -56,7 +55,7 @@ base.OnInitialized(); Logger.WriteLine("ElectionSelector OnInitialized"); - DataGridModule.Register(IgniteUIBlazor); + IgbDataGridModule.Register(IgniteUIBlazor); var allElections = new List(); //allElections.Add(new Election { Year = 2022, Index = -1 } ); @@ -107,14 +106,14 @@ return base.OnAfterRenderAsync(firstRender); } - protected void OnSelectedItemsChanged(GridSelectedItemsChangedEventArgs e) + protected void OnSelectedItemsChanged(IgbGridSelectedItemsChangedEventArgs e) { var election = e.CurrentItems[0] as Election; Console.WriteLine("Selector OnElectionChanged " + election.Year); this.Changed.InvokeAsync(election.Year); } - protected void OnSelectedCellsChanged(GridSelectedCellsChangedEventArgs e) + protected void OnSelectedCellsChanged(IgbGridSelectedCellsChangedEventArgs e) { var election = e.CurrentCells[0].RowItem as Election; Console.WriteLine("Selector OnElectionChanged " + election.Year); diff --git a/usa-elections/Pages/ElectionTree.razor b/usa-elections/Pages/ElectionTree.razor index 01aaf28..a87c74a 100644 --- a/usa-elections/Pages/ElectionTree.razor +++ b/usa-elections/Pages/ElectionTree.razor @@ -64,7 +64,7 @@ public bool TooltipVisible { get; set; } public string TooltipDisplay { get { return TooltipVisible ? "display: flex" : "display: none"; } } - void OnNodePointerOver(TreemapNodePointerEventArgs e) + void OnNodePointerOver(IgbTreemapNodePointerEventArgs e) { var position = e.Position; var x = e.Position.X; @@ -101,14 +101,14 @@ //Console.WriteLine("OnNodePointerOver " + item.StateSymbol + " " + TooltipPostion); } - void OnNodePointerEnter(TreemapNodePointerEventArgs e) + void OnNodePointerEnter(IgbTreemapNodePointerEventArgs e) { //if (e.IsOverHeader) return; //var item = e.Item as ResultsByState; //Console.WriteLine("OnNodePointerEnter " + item.StateSymbol + " " + e.Position.X); } - void OnNodePointerLeave(TreemapNodePointerEventArgs e) + void OnNodePointerLeave(IgbTreemapNodePointerEventArgs e) { TooltipVisible = false; StateHasChanged(); @@ -117,8 +117,8 @@ //Console.WriteLine("OnNodePointerLeave " + item.StateSymbol + " " + e.Position.X); } - private Treemap Treemap; - public Treemap TreemapRef + private IgbTreemap Treemap; + public IgbTreemap TreemapRef { get { return Treemap; } set { Treemap = value; this.OnTreemap(); } @@ -185,7 +185,7 @@ TooltipVisible = false; Logger.WriteLine("ElectionTree OnInitialized"); - TreemapModule.Register(IgniteUIBlazor); + IgbTreemapModule.Register(IgniteUIBlazor); } protected override async Task OnInitializedAsync() diff --git a/usa-elections/Pages/MapShapesView.razor b/usa-elections/Pages/MapShapesView.razor index cc32983..d4a9967 100644 --- a/usa-elections/Pages/MapShapesView.razor +++ b/usa-elections/Pages/MapShapesView.razor @@ -205,8 +205,8 @@ private List AllElections; private Election SelectedElection; - private DataChart ElectionByStatesChart; - private DataChart ElectionByStatesChartRef + private IgbDataChart ElectionByStatesChart; + private IgbDataChart ElectionByStatesChartRef { get { return ElectionByStatesChart; } set { ElectionByStatesChart = value; this.OnElectionByStatesChartRef(); StateHasChanged(); } @@ -278,16 +278,16 @@ //ElectionByStatesChart.SizeChanged += ElectionChart; } - void OnChartSizeChanged(RectChangedEventArgs args) + void OnChartSizeChanged(IgbRectChangedEventArgs args) { //Logger.WriteLine("OnChartSizeChanged " + args.OldRect.Height + " " + args.OldRect.Width); //Logger.WriteLine("OnChartSizeChanged " + args.NewRect.Height + " " + args.NewRect.Width); } private List ShapeLabels; - private ShapeDataSource ShapeRecords; - private GeographicMap ShapeMap; - private GeographicShapeSeries ShapeSeries; + private IgbShapeDataSource ShapeRecords; + private IgbGeographicMap ShapeMap; + private IgbGeographicShapeSeries ShapeSeries; protected override void OnInitialized() { @@ -297,16 +297,16 @@ SplashVisible = true; VotesDisplayMode = ElectionDisplayMode.Electoral; - DataGridModule.Register(IgniteUIBlazor); + IgbDataGridModule.Register(IgniteUIBlazor); - GeographicMapModule.Register(IgniteUIBlazor); + IgbGeographicMapModule.Register(IgniteUIBlazor); - LegendModule.Register(IgniteUIBlazor); - DataChartCoreModule.Register(IgniteUIBlazor); - DataChartScatterModule.Register(IgniteUIBlazor); - DataChartScatterCoreModule.Register(IgniteUIBlazor); - DataChartInteractivityModule.Register(IgniteUIBlazor); - NumberAbbreviatorModule.Register(IgniteUIBlazor); + IgbLegendModule.Register(IgniteUIBlazor); + IgbDataChartCoreModule.Register(IgniteUIBlazor); + IgbDataChartScatterModule.Register(IgniteUIBlazor); + IgbDataChartScatterCoreModule.Register(IgniteUIBlazor); + IgbDataChartInteractivityModule.Register(IgniteUIBlazor); + IgbNumberAbbreviatorModule.Register(IgniteUIBlazor); StatesWithBoxes = new Dictionary(); StatesWithSmallArea = new List { "VT", "NH", "MA", "RI", "CT", "NJ", "DE", "DC", "MD"}; @@ -335,16 +335,16 @@ if (this.ShapeMap != null) { - ShapeSeries = (GeographicShapeSeries)this.ShapeMap.ActualSeries[0]; + ShapeSeries = (IgbGeographicShapeSeries)this.ShapeMap.ActualSeries[0]; ShapeSeries.ShapefileDataSource = ( - new ShapeDataSource() { + new IgbShapeDataSource() { Name="choroShapes", //ShapefileSource = "shapes/usa_states_ak_below.shp", //DatabaseSource = "shapes/usa_states_ak_below.dbf", ShapefileSource = "shapes/usa_states_centered.shp", DatabaseSource = "shapes/usa_states_centered.dbf", - ImportCompleted = new EventCallback(null, - (Func)OnImportCompleted) + ImportCompleted = new EventCallback(null, + (Func)OnImportCompleted) } ); } @@ -352,7 +352,7 @@ return base.OnAfterRenderAsync(firstRender); } - protected async Task OnImportCompleted(AsyncCompletedEventArgs args) + protected async Task OnImportCompleted(IgbAsyncCompletedEventArgs args) { ElectionService.Http = Http; await ElectionService.Load(); diff --git a/usa-elections/USA-Elections.csproj b/usa-elections/USA-Elections.csproj index 03e6552..81e913c 100644 --- a/usa-elections/USA-Elections.csproj +++ b/usa-elections/USA-Elections.csproj @@ -42,7 +42,7 @@ - +