Пример #1
0
 private void CustomInitializeComponents()
 {
     this.AccessibleName = "ProfileListBox";
       this._listBoxHeader.AccessibleName = "ProfileListBox_ListBoxHeader";
       this._listBoxHeader.TabStop = false;
       this._listBoxHeader.Columns = ProfileListBox.GetListboxHeaderData();
       this._currSortColumnData = this._listBoxHeader.Columns[0];
       this._listBoxHeader.SortOrderChangedEvent += new CustomListBoxHeader.SortOrderChangedDelegate(this.ApplyNewSortOrder);
       this._listBoxHeader.Size = new Size(this.Width - 2, this._listBoxHeader.Height);
       this._listBoxHeader.Location = new Point(1, 0);
       this.Controls.Add((Control) this._listBoxHeader);
       this.AddCustomListBox();
 }
Пример #2
0
 private void CustomInitializeComponents()
 {
     this.AccessibleName = "NetworkListBox";
       this._listBoxHeader.AccessibleName = "NetworkListPanel_NetworkListBox_ListBoxHeader";
       this._listBoxHeader.TabStop = false;
       this._listBoxHeader.Columns = WiMAXDisplayService.Singleton.GetAvailableNetworksListboxHeaderData();
       this._currSortColumnData = this._listBoxHeader.Columns[0];
       this._listBoxHeader.SortOrderChangedEvent += new CustomListBoxHeader.SortOrderChangedDelegate(this.ApplyNewSortOrder);
       this._listBoxHeader.Size = new Size(this.Width - 2, this._listBoxHeader.Height);
       this._listBoxHeader.Location = new Point(1, 0);
       this.Controls.Add((Control) this._listBoxHeader);
       this.AddCustomListBox(false);
 }
Пример #3
0
 private void ApplyNewSortOrder(ListBoxHeaderData sortColumnData)
 {
     this._currSortColumnData = sortColumnData;
       if (this._customListBox == null)
     return;
       List<ProfileDisplayItem> profileList = new List<ProfileDisplayItem>();
       for (int index = 0; index < this._customListBox.Items.Count; ++index)
     profileList.Add((ProfileDisplayItem) this._customListBox.Items[index]);
       this.DoSort(ref profileList);
       this._customListBox.SetDataSource(profileList);
 }
Пример #4
0
 private void ApplyNewSortOrder(ListBoxHeaderData sortColumnData)
 {
     this._currSortColumnData = sortColumnData;
       List<NetworkDisplayItem> ndiList = new List<NetworkDisplayItem>();
       if (this._customListBox == null)
     return;
       for (int index = 0; index < this._customListBox.Items.Count; ++index)
     ndiList.Add((NetworkDisplayItem) this._customListBox.Items[index]);
       this.DoSort(ref ndiList);
       this._customListBox.SetDataSource(ndiList);
 }