本文整理汇总了C#中ListViewColumnSorter类的典型用法代码示例。如果您正苦于以下问题:C# ListViewColumnSorter类的具体用法?C# ListViewColumnSorter怎么用?C# ListViewColumnSorter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListViewColumnSorter类属于命名空间,在下文中一共展示了ListViewColumnSorter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IndexManager
public IndexManager()
{
InitializeComponent();
//创建一个ListView排序类的对象,并设置listView1的排序器
this.lvwColumnSorter = new ListViewColumnSorter();
this.lvwFIn.ListViewItemSorter = this.lvwColumnSorter;
this.lvwFOut.ListViewItemSorter = this.lvwColumnSorter;
this.lvwMIn.ListViewItemSorter = this.lvwColumnSorter;
this.lvwMOut.ListViewItemSorter = this.lvwColumnSorter;
this.lvwColumnSorter.Order = SortOrder.Ascending;
this.lvwColumnSorter.SortColumn = 0;
this.lvwFIn.Sort();
this.lvwFOut.Sort();
this.lvwMIn.Sort();
this.lvwMOut.Sort();
this.folderBrowserDialog.SelectedPath = "";
//GetSystemIcon getIcon = new GetSystemIcon();//获取图标
//加入文件夹图标
this.imgIcon.Images.Add("folder", GetSystemIcon.GetFolderIcon(false));
this.lblWarning.Text = "";
this.InitData();//初始化索引数据
}
示例2: Form1
public Form1()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.listView1.ListViewItemSorter = lvwColumnSorter;
wikiCollection = new WikiCollection();
IncrementPagesLoaded = new IncrementPagesLoadedDelegate(IncrementPagesLoadedMethod);
IncrementPagesLoadedByVal = new IncrementPagesLoadedByValDelegate(IncrementPagesLoadedByValMethod);
CheckSiteLoaded = new CheckSiteLoadedDelegate(CheckSiteLoadedMethod);
CheckTitlesLoaded = new CheckPageTitlesLoadedDelegate(CheckPageTitlesLoadedMethod);
CheckTokenized = new CheckTokenizedDelegate(CheckTokenizedMethod);
CheckCheckBox4 = new CheckCheckBox4Delegate(CheckCheckBox4Method);
CheckCheckBox5 = new CheckCheckBox5Delegate(CheckCheckBox5Method);
AddPageText = new AddPageTextDelegate(AddPageTextMethod);
UpdateText = new UpdateTextDelegate(UpdateTextMethod);
AddClusters = new AddClustersDelegate(AddClustersMethod);
//Task.Factory.StartNew(LoadPages);
Task.Factory.StartNew(LoadWikipediaXML);
/*
WikiConnection wiki = new WikiConnection("localhost");
GetPage page = new GetPage(wiki, "", "List of trigonometric identities");
CommandResult result = page.Execute();*/
}
示例3: InitializeComponent
public ListaVendaComissão()
{
InitializeComponent();
lst.Columns.Clear();
lst.Columns.Add(colCódigoVenda);
lst.Columns.Add(colData);
lst.Columns.Add(colVendedor);
lst.Columns.Add(colCliente);
lst.Columns.Add(colComissaoPara);
lst.Columns.Add(colSetor);
lst.Columns.Add(colValorVenda);
lst.Columns.Add(colValorComissão);
EnumRegra[] tipos = (EnumRegra[]) Enum.GetValues(typeof(EnumRegra));
hashRegraGrupo = new Dictionary<EnumRegra, ListViewGroup>(tipos.Length);
lock (hashRegraGrupo)
{
foreach (EnumRegra tipo in tipos)
{
ListViewGroup grupo = new ListViewGroup(tipo.ToString());
lst.Groups.Add(grupo);
hashRegraGrupo[tipo] = grupo;
}
}
ordenador = new ListViewColumnSorter();
lst.ListViewItemSorter = ordenador;
}
示例4: Form1
private Dictionary<ExchangeGeneratorParameters.MailSize, string> _mailSizeDictionary; // used for storing Mail Size possible values
#endregion Fields
#region Constructors
public Form1()
{
InitializeComponent();
AddControlsToCollections();
DisplayConnectionPage();
GetCredsFromFileToGui();
_lvwColumnSorter = new ListViewColumnSorter();
lv_AgentsList.ListViewItemSorter = _lvwColumnSorter;
lv_ExchangeServers.ListViewItemSorter = _lvwColumnSorter;
lv_SQL.ListViewItemSorter = _lvwColumnSorter;
lv_AgentsList.Items.Clear();
lv_AgentsList.View = View.Details;
lv_ExchangeServers.Items.Clear();
lv_ExchangeServers.View = View.Details;
lv_SQL.Items.Clear();
lv_SQL.View = View.Details;
lbl_MailSizeNote.Text =
"*Mail size value can impact\nCore repository compression.\nRecommended value is 'Small'.";
lbl_fillingGenerationDescription.Text =
"*Generated files will not be\ndeleted at the end of each cycle.";
}
示例5: UsersForm
public UsersForm(MainForm mf)
{
this.mf = mf;
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.lvUsersList.ListViewItemSorter = lvwColumnSorter;
}
示例6: ListView_ColumnClick
public static void ListView_ColumnClick(object sender, ColumnClickEventArgs e)
{
ListView LV = sender as ListView;
if (LV == null)
{
return;
}
ListViewColumnSorter S = LV.ListViewItemSorter as ListViewColumnSorter;
if (S == null)
{
S = new ListViewColumnSorter();
LV.ListViewItemSorter = S;
S.Column = -1;
}
if (S.Column == e.Column)
{
S.Order = ((S.Order == SortOrder.Ascending) ? SortOrder.Descending : SortOrder.Ascending);
}
else
{
S.Column = e.Column;
S.Order = SortOrder.Ascending;
}
LV.Sort();
}
示例7: MainForm
public MainForm()
{
InitializeComponent();
columnHeaderFileName.Tag = new TextComparer<SearchFileInfo>(s => Path.GetFileName(s.Path));
columnHeaderDirectory.Tag = new TextComparer<SearchFileInfo>(s => Path.GetDirectoryName(s.Path));
columnHeaderModifyDate.Tag = new DateTimeComparer<SearchFileInfo>(s => s.LastWriteTime);
columnHeaderSize.Tag = new Int64Comparer<SearchFileInfo>(s => s.Length);
columnHeaderSearchTextHits.Tag = new TextComparer<SearchFileInfo>(s => s.SearchTexts);
// Create an instance of a ListView column sorter and assign it to the ListView control.
lvwColumnSorter = new ListViewColumnSorter();
lvwColumnSorter.CompareItems += new EventHandler<ListViewColumnSorterCompareEventArgs>(lvwColumnSorter_CompareItems);
this.listViewResults.ListViewItemSorter = lvwColumnSorter;
searchEngine = new SearchEngine();
searchEngine.SearchingPath += new EventHandler<SearchEventArgs>(SearchEngineSearchingPath);
searchEngine.SearchFound += new EventHandler<SearchFoundEventArgs>(SearchEngineSearchFound);
// Apply settings to combo boxes
Properties.Settings.Default.DirectoryItems = ApplyComboBoxSetting(comboBoxDirectory, Properties.Settings.Default.DirectoryItems);
Properties.Settings.Default.DirectorySubPaths = ApplyComboBoxSetting(comboBoxDirPath, Properties.Settings.Default.DirectorySubPaths);
Properties.Settings.Default.FileNames = ApplyComboBoxSetting(comboBoxFileName, Properties.Settings.Default.FileNames);
Properties.Settings.Default.Texts = ApplyComboBoxSetting(comboBoxText, Properties.Settings.Default.Texts);
ShowHidePreviewPane();
imageLoader = new FileImageLoader();
imageLoader.LoadCompleted += new EventHandler<LoadCompletedEventArgs>(imageLoader_LoadCompleted);
}
示例8: ListaExtrato
public ListaExtrato()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.lst.ListViewItemSorter = lvwColumnSorter;
}
示例9: CmdItemInfo
public CmdItemInfo(SqlConnection mainConnection)
{
InitializeComponent();
sqlConnection = mainConnection;
listViewColumnSorter = new ListViewColumnSorter();
this.listView1.ListViewItemSorter = listViewColumnSorter;
}
示例10: View
public View()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.listView.ListViewItemSorter = lvwColumnSorter;
}
示例11: EstimatorTagForm
public EstimatorTagForm()
{
InitializeComponent();
m_sorter = new ListViewColumnSorter();
m_list.ListViewItemSorter = m_sorter;
m_selected_tags = new List<int>(8);
}
示例12: NewGroupDlg
public NewGroupDlg(IPlugInContainer container, StandardPage parentPage,Hostinfo hn, IPlugIn plugin)
: base(container, parentPage)
{
InitializeComponent();
// Create an instance of a ListView column sorter and assign it
// to the ListView control.
lvwColumnSorter = new ListViewColumnSorter();
this.lvMembers.ListViewItemSorter = lvwColumnSorter;
this.ButtonCancel.Text = "Cancel";
this.ButtonOK.Text = "Create";
this.SetAllValueChangedHandlers(this);
localParent = (LUGPage)parentPage;
if (localParent == null)
{
throw new ArgumentException("NewGroupDlg constructor: (LUGPage) parentPage == null");
}
this._hn = hn;
this._plugin = (LUGPlugIn)plugin;
((EditDialog)this).btnApply.Visible = false;
users = new Hashtable();
this.tbGroupName.Select();
}
示例13: ListaPagamento
public ListaPagamento()
{
InitializeComponent();
if (this.DesignMode) return;
ordenador = new ListViewColumnSorter();
hashItemListaPagamento = new Dictionary<ListViewItem, ListaPagamentoItem>();
lista.ListViewItemSorter = ordenador;
Image imagemDinheiro = (Image)global::Apresentação.Resource.dinheiro;
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Dinheiro.ToString(), (Image) global::Apresentação.Resource.dinheiro);
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Cheque.ToString(), (Image)global::Apresentação.Resource.cheque1);
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.NotaPromissória.ToString(), (Image)global::Apresentação.Resource.np);
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Ouro.ToString(), (Image)global::Apresentação.Resource.botão___ouro);
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Dolar.ToString(), (Image)global::Apresentação.Resource.pagar_em_dólares__pequeno_1);
imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Crédito.ToString(), (Image)global::Apresentação.Resource.credito);
colContador.Name = "colContador";
colData.Name = "colData";
colValor.Name = "colValor";
colDias.Name = "colDias";
colValorLíquido.Name = "colValorHoje";
colVencimento.Name = "colVencimento";
colProrrogação.Name = "colProrrogação";
colRegistradoPor.Name = "colRegistradoPor";
colPagoNaVenda.Name = "colPagoNaVenda";
colPagaVenda.Name = "colPagaVenda";
colDescrição.Name = "colDescrição";
ordenador.SortColumn = colData.Index;
ordenador.OrderOfSort = SortOrder.Descending;
}
示例14: Patient_Screen
public Patient_Screen()
{
InitializeComponent();
if (TCPProcessor.ConnectedToServer)
_remote_DataManager = (Patient_Remote_DataManager)Activator.GetObject(typeof(Patient_Remote_DataManager), TCPProcessor.BuildServerRemotingString(8005, "PatientRemoteDataManagerConnection"));
_sessionSorter = new ListViewColumnSorter();
this.listViewSessions.ListViewItemSorter = _sessionSorter;
listViewSessions.Groups.Add(listViewGroup_New);
listViewSessions.Groups.Add(listViewGroup_Scheduled);
listViewSessions.Groups.Add(listViewGroup_Completed);
_runReviewButtonTimer.Interval = 100;
_runReviewButtonTimer.Tick += new EventHandler(_runReviewButtonTimer_Tick);
_runReviewButtonTimer.Start();
Create_Edit_Session_Control.Cancel += new Create_Edit_Session_Control.CancelEventHandler(Create_Edit_Session_Control_Cancel);
Create_Edit_Session_Control.TaskSelect += new Create_Edit_Session_Control.TaskSelectEventHandler(Create_Edit_Session_Control_TaskSelect);
Create_Edit_Session_Control.SetProgressBarValue += new Create_Edit_Session_Control.SetProgressBarValueEventHandler(Create_Edit_Session_Control_SetProgressBarValue);
Create_Edit_Session_Control.SelectionStateChanged += new Create_Edit_Session_Control.SelectionStateChangedEventHandler(Create_Edit_Session_Control_SelectionStateChanged);
Create_Edit_Session_Control.CreateNewTask += new Create_Edit_Session_Control.CreateNewTaskEventHandler(Create_Edit_Session_Control_CreateNewTask);
}
示例15: SortedListView
public SortedListView()
{
this.InitializeComponent();
this.lvwColumnSorter = new ListViewColumnSorter();
base.ListViewItemSorter = this.lvwColumnSorter;
base.ColumnClick += new ColumnClickEventHandler(this.SortedListView_ColumnClick);
}