public void GenerateListPagginationButtons() { ContainerButtons.Children.Clear(); if (_board.Count > 9) { int totalPages = (int)Math.Ceiling((decimal)_board.Count / _board.PageSize); for (int i = 1; i <= totalPages; i++) { AppBarButton paggButton = new AppBarButton { Icon = i.ToString(), Tag = i, Size = 125, FontIcon = Fonts.GetFontFamilies(new Uri("pack://application:,,,/Resources/Fonts/#")).FirstOrDefault() }; paggButton.Click += PaggButton_Click; ContainerButtons.Children.Add(paggButton); } } else { this.Visibility = Visibility.Collapsed; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\..\Pages\TablesPage.xaml" ((VrManager.Pages.TablesPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden return; case 2: this.ActionPanel = ((System.Windows.Controls.Grid)(target)); return; case 3: this.AddNewItem = ((VrManager.Controls.AppBarButton)(target)); return; case 4: this.EditItem = ((VrManager.Controls.AppBarButton)(target)); return; case 5: this.DeleteItem = ((VrManager.Controls.AppBarButton)(target)); return; case 6: this.SelectionTabTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.OptionsList = ((System.Windows.Controls.ListBox)(target)); #line 95 "..\..\..\Pages\TablesPage.xaml" this.OptionsList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OptionsList_SelectionChanged); #line default #line hidden return; case 8: this.SelectedBasicInformation = ((System.Windows.Controls.ListBoxItem)(target)); return; case 9: this.SelectedMonthlyReport = ((System.Windows.Controls.ListBoxItem)(target)); return; case 10: this.SelectedDepartamentReport = ((System.Windows.Controls.ListBoxItem)(target)); return; case 11: this.ManageDbTabs = ((System.Windows.Controls.TabControl)(target)); #line 163 "..\..\..\Pages\TablesPage.xaml" this.ManageDbTabs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ManageDbTabs_SelectionChanged); #line default #line hidden return; case 12: this.Video360 = ((System.Windows.Controls.TabItem)(target)); return; case 13: this.TableVideo360 = ((System.Windows.Controls.DataGrid)(target)); #line 166 "..\..\..\Pages\TablesPage.xaml" this.TableVideo360.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.IsItemSelected); #line default #line hidden return; case 14: this.Video5D = ((System.Windows.Controls.TabItem)(target)); return; case 15: this.TableVideo5D = ((System.Windows.Controls.DataGrid)(target)); #line 179 "..\..\..\Pages\TablesPage.xaml" this.TableVideo5D.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.IsItemSelected); #line default #line hidden return; case 16: this.Game = ((System.Windows.Controls.TabItem)(target)); return; case 17: this.TableGame = ((System.Windows.Controls.DataGrid)(target)); #line 192 "..\..\..\Pages\TablesPage.xaml" this.TableGame.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.IsItemSelected); #line default #line hidden return; case 18: this.CrudFrame = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\..\Pages\VideoControlerPage.xaml" ((VrManager.Pages.VideoControlerPage)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded); #line default #line hidden return; case 2: this.NameVideo = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.Btn_OneVisitor = ((VrManager.Controls.AppBarButton)(target)); return; case 4: this.Btn_TwoVisitor = ((VrManager.Controls.AppBarButton)(target)); return; case 5: this.Btn_Play = ((VrManager.Controls.AppBarButton)(target)); return; case 6: this.Terminal = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.Btn_Start = ((VrManager.Controls.AppBarButton)(target)); return; case 8: this.Btn_Pause = ((VrManager.Controls.AppBarButton)(target)); return; case 9: this.Btn_Stop = ((VrManager.Controls.AppBarButton)(target)); return; case 10: this.TimerPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.Hour = ((System.Windows.Documents.Run)(target)); return; case 12: this.Minutes = ((System.Windows.Documents.Run)(target)); return; case 13: this.Second = ((System.Windows.Documents.Run)(target)); return; } this._contentLoaded = true; }