/// <summary> /// A header was clicked. Sort the associated column. /// </summary> private void OnHeaderClicked(object sender, RoutedEventArgs e) { // Make sure the column is really being sorted. GridViewColumnHeader header = e.OriginalSource as GridViewColumnHeader; if (header == null || header.Role == GridViewColumnHeaderRole.Padding) return; SortListViewColumn column = header.Column as SortListViewColumn; if (column == null) return; // See if a new column was clicked, or the same column was clicked. if (sortColumn != column) { // A new column was clicked. previousSortColumn = sortColumn; sortColumn = column; sortDirection = ListSortDirection.Ascending; } else { // The same column was clicked, change the sort order. previousSortColumn = null; sortDirection = (sortDirection == ListSortDirection.Ascending) ? ListSortDirection.Descending : ListSortDirection.Ascending; } // Sort the data. SortList(column.SortProperty); // Update the column header based on the sort column and order. UpdateHeaderTemplate(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.gridContainer = ((System.Windows.Controls.Grid)(target)); return; case 3: this.pnlLinks = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 6: this.grdClients = ((RoDuino.SMS.Components.Grid.EditListView)(target)); return; case 7: this.Names = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 8: this.Phone = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 9: this.Date = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 10: this.Message = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; } this._contentLoaded = true; }
/// <summary> /// A header was clicked. Sort the associated column. /// </summary> private void OnHeaderClicked(object sender, RoutedEventArgs e) { // Make sure the column is really being sorted. GridViewColumnHeader header = e.OriginalSource as GridViewColumnHeader; if (header == null || header.Role == GridViewColumnHeaderRole.Padding) { return; } SortListViewColumn column = header.Column as SortListViewColumn; if (column == null) { return; } // See if a new column was clicked, or the same column was clicked. if (sortColumn != column) { // A new column was clicked. previousSortColumn = sortColumn; sortColumn = column; sortDirection = ListSortDirection.Ascending; } else { // The same column was clicked, change the sort order. previousSortColumn = null; sortDirection = (sortDirection == ListSortDirection.Ascending) ? ListSortDirection.Descending : ListSortDirection.Ascending; } // Sort the data. SortList(column.SortProperty); // Update the column header based on the sort column and order. UpdateHeaderTemplate(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.gridContainer = ((System.Windows.Controls.Grid)(target)); return; case 3: this.pnlLinks = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.txtFileName = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.btnFileBrowse = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\..\..\..\Views\Import\Index.xaml" this.btnFileBrowse.Click += new System.Windows.RoutedEventHandler(this.OpenFile); #line default #line hidden return; case 7: this.txtStatus = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 9: this.grdClients = ((RoDuino.SMS.Components.Grid.EditListView)(target)); return; case 10: this.Names = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 11: this.Phone = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 12: this.Date = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 13: this.Message = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.gridContainer = ((System.Windows.Controls.Grid)(target)); return; case 3: this.pnlLinks = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.btnStopQueue = ((System.Windows.Controls.Button)(target)); return; case 6: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 7: this.grdClients = ((RoDuino.SMS.Components.Grid.EditListView)(target)); return; case 8: this.Names = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 9: this.Phone = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 10: this.Status = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.gridContainer = ((System.Windows.Controls.Grid)(target)); return; case 3: this.pnlLinks = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.borderAdd = ((System.Windows.Controls.Border)(target)); return; case 5: this.btnAdd = ((RoDuino.SMS.Components.RoImageButton)(target)); return; case 6: this.borderEdit = ((System.Windows.Controls.Border)(target)); return; case 7: this.btnEdit = ((RoDuino.SMS.Components.RoImageButton)(target)); return; case 8: this.borderDelete = ((System.Windows.Controls.Border)(target)); return; case 9: this.btnDelete = ((RoDuino.SMS.Components.RoImageButton)(target)); return; case 10: this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.txtFilter = ((RoDuino.SMS.Components.FilterText)(target)); #line 109 "..\..\..\..\..\Views\Main\List.xaml" this.txtFilter.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.FilterTextBox_TextChanged)); #line default #line hidden return; case 12: this.txtMessage = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.btnSendSms = ((System.Windows.Controls.Button)(target)); return; case 14: this.btnSelectAll = ((System.Windows.Controls.Button)(target)); return; case 15: this.btnRefresh = ((System.Windows.Controls.Button)(target)); return; case 16: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 17: this.grdClients = ((RoDuino.SMS.Components.Grid.EditListView)(target)); return; case 18: this.Names = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 19: this.Phone = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; case 20: this.Network = ((RoDuino.SMS.Components.Grid.SortListViewColumn)(target)); return; } this._contentLoaded = true; }