本文整理汇总了C#中ListViewColumnSorter类的典型用法代码示例。如果您正苦于以下问题:C# ListViewColumnSorter类的具体用法?C# ListViewColumnSorter怎么用?C# ListViewColumnSorter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListViewColumnSorter类属于命名空间,在下文中一共展示了ListViewColumnSorter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();//初始化索引数据
}
开发者ID:cqm0609,项目名称:lucene-file-finder,代码行数:25,代码来源:IndexManager.cs
示例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();*/
}
开发者ID:ZenithWest,项目名称:Wikipedia-Clustering,代码行数:28,代码来源:Form1.cs
示例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;
}
开发者ID:andrepontesmelo,项目名称:imjoias,代码行数:30,代码来源:ListaVendaComissão.cs
示例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.";
}
开发者ID:abezzubets,项目名称:DDTGenerator,代码行数:34,代码来源:Form1.cs
示例5: UsersForm
public UsersForm(MainForm mf)
{
this.mf = mf;
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.lvUsersList.ListViewItemSorter = lvwColumnSorter;
}
开发者ID:felixnoriel,项目名称:thesisrepository,代码行数:7,代码来源:UsersForm.cs
示例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();
}
开发者ID:Gravenet,项目名称:POLUtils,代码行数:25,代码来源:ListViewColumnSorter.cs
示例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);
}
开发者ID:helgihaf,项目名称:SimpleSearch,代码行数:30,代码来源:MainForm.cs
示例8: ListaExtrato
public ListaExtrato()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.lst.ListViewItemSorter = lvwColumnSorter;
}
开发者ID:andrepontesmelo,项目名称:imjoias,代码行数:7,代码来源:ListaExtrato.cs
示例9: CmdItemInfo
public CmdItemInfo(SqlConnection mainConnection)
{
InitializeComponent();
sqlConnection = mainConnection;
listViewColumnSorter = new ListViewColumnSorter();
this.listView1.ListViewItemSorter = listViewColumnSorter;
}
开发者ID:wyntung,项目名称:HLZDGL,代码行数:7,代码来源:CmdItemInfo.cs
示例10: View
public View()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.listView.ListViewItemSorter = lvwColumnSorter;
}
开发者ID:tycho404,项目名称:Poddy,代码行数:7,代码来源:View.cs
示例11: EstimatorTagForm
public EstimatorTagForm()
{
InitializeComponent();
m_sorter = new ListViewColumnSorter();
m_list.ListViewItemSorter = m_sorter;
m_selected_tags = new List<int>(8);
}
开发者ID:mcneel,项目名称:Rhino4Samples_DotNet,代码行数:7,代码来源:EstimatorTagForm.cs
示例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();
}
开发者ID:FarazShaikh,项目名称:likewise-open,代码行数:32,代码来源:NewGroupDlg.cs
示例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;
}
开发者ID:andrepontesmelo,项目名称:imjoias,代码行数:34,代码来源:ListaPagamento.cs
示例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);
}
开发者ID:matalangilbert,项目名称:stromohab-2008,代码行数:29,代码来源:Patient_Screen.cs
示例15: SortedListView
public SortedListView()
{
this.InitializeComponent();
this.lvwColumnSorter = new ListViewColumnSorter();
base.ListViewItemSorter = this.lvwColumnSorter;
base.ColumnClick += new ColumnClickEventHandler(this.SortedListView_ColumnClick);
}
开发者ID:TGHGH,项目名称:MES-CAR,代码行数:7,代码来源:SortedListView.cs
示例16: Patient_Records_Screen
public Patient_Records_Screen()
{
InitializeComponent();
if (TCPProcessor.ConnectedToServer)
_Remote_Data_Manager = (Patient_Remote_DataManager)Activator.GetObject(typeof(Patient_Remote_DataManager), TCPProcessor.BuildServerRemotingString(8005, "PatientRemoteDataManagerConnection"));
//Setup the sorter
_patientSorter = new ListViewColumnSorter();
this.listViewPatients.ListViewItemSorter = _patientSorter;
listViewPatients.Groups.Add(listViewGroup_New);
listViewPatients.Groups.Add(listViewGroup_Patients);
//Setup background worker events
backgroundWorkerSearcher.DoWork += new DoWorkEventHandler(backgroundWorkerSearcher_DoWork);
backgroundWorkerSearcher.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerSearcher_RunWorkerCompleted);
backgroundWorkerLoader.DoWork += new DoWorkEventHandler(backgroundWorkerLoader_DoWork);
backgroundWorkerLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerLoader_RunWorkerCompleted);
//Request an updated patient list and then retreive it
_Remote_Data_Manager.ClientRequestUpdatedPatientList();
//Load in the patient data into the open patient list view
LoadInPatientData();
}
开发者ID:matalangilbert,项目名称:stromohab-2008,代码行数:29,代码来源:Patient_Records_Screen.cs
示例17: LQTListView
public LQTListView()
{
InitializeComponent();
ListViewColumnSorter _lvwItemComparer = new ListViewColumnSorter();
this.ListViewItemSorter = _lvwItemComparer;
this.MouseUp += new MouseEventHandler(LQTListView_MouseUp);
this.editTextBox.Size = new System.Drawing.Size(0, 0);
this.editTextBox.Location = new System.Drawing.Point(0, 0);
this.Controls.AddRange(new System.Windows.Forms.Control[] { this.editTextBox});
this.editTextBox.KeyPress += new KeyPressEventHandler(editTextBox_KeyPress);
this.editTextBox.KeyDown +=new KeyEventHandler(editTextBox_KeyDown);
this.editTextBox.LostFocus += new EventHandler(editTextBox_LostFocus);
this.editTextBox.Font = this.Font; //new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.editTextBox.BackColor = Color.LightYellow;
this.editTextBox.BorderStyle = BorderStyle.FixedSingle;
this.editTextBox.Text = "";
this.editTextBox.Hide();
this.lnkLabel.Size = new System.Drawing.Size(0, 0);
this.lnkLabel.Location = new System.Drawing.Point(0, 0);
this.Controls.AddRange(new System.Windows.Forms.Control[] { this.lnkLabel });
this.lnkLabel.Click += new EventHandler(lnkLabel_Click);
this.lnkLabel.Font = this.Font;
this.lnkLabel.Text = "";
this.lnkLabel.Hide();
}
开发者ID:opianHealth,项目名称:ForLAB,代码行数:32,代码来源:LQTListView.cs
示例18: WindowLister
public WindowLister()
{
InitializeComponent();
this.Icon = System.Drawing.Icon.FromHandle(WinApi.LoadIcon(Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), WinApi.IDI_APPLICATION));
this.list.ListViewItemSorter = lvwColumnSorter = new ListViewColumnSorter();
this.list.SmallImageList = this.imgList = new ImageList();
}
开发者ID:coderforlife,项目名称:c4l-utils,代码行数:7,代码来源:WindowLister.cs
示例19: ListViewExtended
public ListViewExtended()
{
sorter = new ListViewColumnSorter();
ListViewItemSorter = sorter;
ColumnClick += ListViewExtended_ColumnClick;
}
开发者ID:rene-scheepers,项目名称:ict4events-filesharing,代码行数:7,代码来源:ListViewExtended.cs
示例20: Form1
public Form1()
{
InitializeComponent();
lvwColumnSorter = new ListViewColumnSorter();
this.listView1.ListViewItemSorter = lvwColumnSorter;
OutputClusters = new XElement("Clusters");
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);
treeView1.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold | FontStyle.Underline);
//treeView1.BackColor = Color.Blue;
/*
WikiConnection wiki = new WikiConnection("localhost");
GetPage page = new GetPage(wiki, "", "List of trigonometric identities");
CommandResult result = page.Execute();*/
}
开发者ID:ZenithWest,项目名称:Wikipedia-Clustering,代码行数:30,代码来源:Form1.cs
注:本文中的ListViewColumnSorter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论