資源簡介
txt轉成voc數據集標準xml(matlab的)

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?ListSort
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????TestLoad();
????????}
????????public?void?TestLoad()
????????{
????????????InitTestInfo();
????????????this.dataGridView1.AutoGenerateColumns?=?false;
????????????InitializationTestInfoList();
????????????ListBinding();
????????}
????????public?void?InitTestInfo()
????????{
????????????TestInfo.FirstSortName?=?“State“;
????????????TestInfo.FirstSortOrder?=?true;
????????????TestInfo.FirstSortOrder?=?true;
????????}
????????private?void?ListBinding()
????????{
????????????this.testInfoList.Sort();
????????????this.dataGridView1.DataSource?=?this.testInfoList;
????????????this.dataGridView1.Columns[TestInfo.FirstSortName].HeaderCell.SortGlyphDirection?=?SortOrder.Ascending;
????????}
????????private?void?dataGridView1_ColumnHeaderMouseClick(object?sender?DataGridViewCellMouseEventArgs?e)
????????{
????????????int?columnIndex?=?e.ColumnIndex;
????????????if?(columnIndex?0?||?columnIndex?>=?this.dataGridView1.Columns.Count?||?this.testInfoList.Count?<=?1)
????????????????return;
????????????string?sortName?=?this.dataGridView1.Columns[columnIndex].DataPropertyName;
????????????if?(sortName.Equals(TestInfo.FirstSortName))
????????????{
????????????????TestInfo.FirstSortOrder?=?!TestInfo.FirstSortOrder;
????????????????this.dataGridView1.Columns[columnIndex].HeaderCell.SortGlyphDirection?=?TestInfo.FirstSortOrder???SortOrder.Ascending?:?SortOrder.Descending;
????????????}
????????????else?if?(String.IsNullOrWhiteSpace(TestInfo.SecondSortName))
????????????{
????????????????TestInfo.SecondSortOrder?=?true;
????????????????TestInfo.SecondSortName?=?sortName;
????????????????this.dataGridView1.Columns[columnIndex].HeaderCell.SortGlyphDirection?=?SortOrder.Ascending;
????????????}
????????????else?if?(sortName.Equals(TestInfo.SecondSortName))
????????????{
????????????????TestInfo.SecondSortOrder?=?!TestInfo.SecondSortOrder;
????????????????TestInfo.SecondSortName?=?sortName;
????????????????this.dataGridView1.Columns[columnIndex].HeaderCell.SortGlyphDirection?=?TestInfo.SecondSortOrder???SortOrder.Ascending?:?SortOrder.Descending;
????????????}
????????????else
????????????{
????????????????this.dataGridView1.Columns[TestInfo.SecondSortName].HeaderCell.SortGlyphDirection?=?SortOrder.None;
????????????????TestInfo.SecondSortOrder?=?true;
????????????????TestInfo.SecondSortName?=?sortName;
????????????????this.dataGridView1.Columns[columnIndex].HeaderCell.SortGlyphDirection?=?SortOrder.Ascending;
????????????}
????????????this.testInfoList.Sort();
????????????this.dataGridView1.Refresh();
????????}
????????private
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????187??2014-09-22?10:04??ListSort\ListSort\App.config
?????文件??????17408??2014-09-29?14:05??ListSort\ListSort\bin\Debug\ListSort.exe
?????文件????????187??2014-09-22?10:04??ListSort\ListSort\bin\Debug\ListSort.exe.config
?????文件??????30208??2014-09-29?14:05??ListSort\ListSort\bin\Debug\ListSort.pdb
?????文件??????24224??2014-09-29?15:38??ListSort\ListSort\bin\Debug\ListSort.vshost.exe
?????文件????????187??2014-09-22?10:04??ListSort\ListSort\bin\Debug\ListSort.vshost.exe.config
?????文件????????490??2010-03-17?22:39??ListSort\ListSort\bin\Debug\ListSort.vshost.exe.manifest
?????文件???????9915??2014-09-29?14:06??ListSort\ListSort\Form1.cs
?????文件???????7870??2014-09-29?14:05??ListSort\ListSort\Form1.Designer.cs
?????文件???????8367??2014-09-29?14:05??ListSort\ListSort\Form1.resx
?????文件???????3902??2014-09-29?14:00??ListSort\ListSort\ListSort.csproj
?????文件???????6650??2014-09-29?14:00??ListSort\ListSort\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7027??2014-09-29?13:59??ListSort\ListSort\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????789??2014-09-29?15:38??ListSort\ListSort\obj\Debug\ListSort.csproj.FileListAbsolute.txt
?????文件????????977??2014-09-29?14:05??ListSort\ListSort\obj\Debug\ListSort.csproj.GenerateResource.Cache
?????文件???????2145??2014-09-22?12:35??ListSort\ListSort\obj\Debug\ListSort.csprojResolveAssemblyReference.cache
?????文件??????17408??2014-09-29?14:05??ListSort\ListSort\obj\Debug\ListSort.exe
?????文件????????180??2014-09-29?14:05??ListSort\ListSort\obj\Debug\ListSort.Form1.resources
?????文件??????30208??2014-09-29?14:05??ListSort\ListSort\obj\Debug\ListSort.pdb
?????文件????????180??2014-09-29?14:00??ListSort\ListSort\obj\Debug\ListSort.Properties.Resources.resources
?????文件??????????0??2014-09-22?10:04??ListSort\ListSort\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2014-09-22?10:04??ListSort\ListSort\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2014-09-22?10:04??ListSort\ListSort\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件????????520??2014-09-22?10:04??ListSort\ListSort\Program.cs
?????文件???????1340??2014-09-22?10:04??ListSort\ListSort\Properties\AssemblyInfo.cs
?????文件????????583??2014-09-29?13:59??ListSort\ListSort\Properties\DataSources\TestInfo.datasource
?????文件???????2868??2014-09-22?10:04??ListSort\ListSort\Properties\Resources.Designer.cs
?????文件???????5612??2014-09-22?10:04??ListSort\ListSort\Properties\Resources.resx
?????文件???????1095??2014-09-22?10:04??ListSort\ListSort\Properties\Settings.Designer.cs
?????文件????????249??2014-09-22?10:04??ListSort\ListSort\Properties\Settings.settings
............此處省略15個文件信息
- 上一篇:MATLAB實現DCCA算法
- 下一篇:Matlab生成Voronoi圖代碼
評論
共有 條評論