資源簡介
開發環境:VS2013,devexpress15.2(低版本的dev將出錯)
所用dev主要控件:TreeList,GridControl

代碼片段和文件信息
using?DevExpress.XtraGrid.Columns;
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?DevExpress.XtraTreeList.Nodes;
using?Microsoft.Win32;
using?DevExpress.XtraGrid.Views.WinExplorer;
using?System.Runtime.InteropServices;
using?System.Net;
using?DevExpress.XtraEditors;
namespace?Explorer_dev
{
????public?partial?class?Form1?:?DevExpress.XtraEditors.XtraForm
????{
????????private?List?listFiles?=?new?List();
????????private?bool?isCopy;
????????public?Form1()
????????{
????????????InitializeComponent();
????????????this.StartPosition?=?FormStartPosition.CenterScreen;
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????InitGrid();
????????????InitTreeList();
????????????txtEditCurPath.Text?=?this.treeList1.Nodes.FirstNode.GetValue(“FullName“).ToString();
????????????LoadDataToGrid(txtEditCurPath.Text);
????????????InitStateBarAndRibbon();
????????}
????????///?
????????///?初始化狀態欄和ribbonControl
????????///?
????????void?InitStateBarAndRibbon()
????????{
????????????this.barStaticItemTime.Caption?=?“日期:“+DateTime.Now.ToString(“yyyy-MM-dd“);
????????????IPHostEntry?host?=?Dns.GetHostEntry(Dns.GetHostName());
????????????this.barStaticItemIP.Caption=“本機IP:“?+?host.AddressList[2].ToString();
????????????this.defaultLookAndFeel1.LookAndFeel.SkinName?=?“Seven?Classic“;??//默認皮膚
????????????this.ribbonControl1.Minimized?=?true;
????????????this.repositoryItemComboBox1.SelectedIndexChanged+=new?EventHandler(repositoryItemComboBox1_SelectedIndexChanged);
????????????//皮膚選項
????????????this.repositoryItemComboBox1.NullText?=?“Seven?Classic“;
????????????this.repositoryItemComboBox1.Items.Add(“Coffee“);
????????????this.repositoryItemComboBox1.Items.Add(“Liquid?Sky“);
????????????this.repositoryItemComboBox1.Items.Add(“DevExpress?style“);
????????????this.repositoryItemComboBox1.Items.Add(“Seven?Classic“);
????????????this.repositoryItemComboBox1.Items.Add(“Visual?Studio?2013?Blue“);
????????????this.repositoryItemComboBox1.Items.Add(“DevExpress?Dark?style“);
????????}
????????
????????///?
????????///?初始化gridControl
????????///?
????????void?InitGrid()
????????{
????????????this.winExplorerView1.Columns.Clear();
????????????this.winExplorerView1.Columns.Add(new?GridColumn()?{?FieldName?=?“Image“});
????????????this.winExplorerView1.Columns.Add(new?GridColumn()?{?FieldName?=?“Name“?});
????????????this.winExplorerView1.Columns.Add(new?GridColumn()?{?FieldName?=?“Type“?});
????????????this.winExplorerView1.Columns.Add(new?GridColumn()?{?FieldName?=?“Size“?});
????????????this.winExplorerView1.Columns[“Size“].OptionsColumn.AllowEdit?=?false;
????????????//this.winExplorerView1.Columns[“Size“].OptionsColumn.ShowCaption?=?true;
??????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????123392??2016-08-15?15:07??Explorer_dev\Explorer_dev\bin\Debug\GridControlTest.exe
?????文件??????50688??2016-08-15?15:07??Explorer_dev\Explorer_dev\bin\Debug\GridControlTest.pdb
?????文件??????24224??2016-09-20?14:43??Explorer_dev\Explorer_dev\bin\Debug\GridControlTest.vshost.exe
?????文件????????490??2014-01-13?21:31??Explorer_dev\Explorer_dev\bin\Debug\GridControlTest.vshost.exe.manifest
?????文件????????580??2016-08-08?10:10??Explorer_dev\Explorer_dev\bin\Debug\Icons\application_tile_vertical.png
?????文件???????1347??2016-08-08?10:07??Explorer_dev\Explorer_dev\bin\Debug\Icons\application_view_detail.png
?????文件???????9884??2016-08-08?10:15??Explorer_dev\Explorer_dev\bin\Debug\Icons\images.png
?????文件???????1775??2016-08-08?09:55??Explorer_dev\Explorer_dev\bin\Debug\Icons\list.png
?????文件??????20898??2016-08-08?10:14??Explorer_dev\Explorer_dev\bin\Debug\Icons\pics_2.png
?????文件??????26483??2016-08-08?10:13??Explorer_dev\Explorer_dev\bin\Debug\Icons\pictures.png
?????文件???????3388??2016-08-09?11:54??Explorer_dev\Explorer_dev\bin\Debug\Icons\skin.png
?????文件???????5394??2016-08-08?11:56??Explorer_dev\Explorer_dev\bin\Debug\pictures\folder_close.png
?????文件???????2286??2016-08-08?12:19??Explorer_dev\Explorer_dev\bin\Debug\pictures\folder_yellow.png
?????文件??????19635??2016-08-08?11:51??Explorer_dev\Explorer_dev\bin\Debug\pictures\hard_drive_windows_2.png
?????文件??????18181??2016-08-08?11:53??Explorer_dev\Explorer_dev\bin\Debug\pictures\monitor_1.png
?????文件???????4816??2016-08-04?10:09??Explorer_dev\Explorer_dev\Explorer_dev.csproj
?????文件???????4608??2016-08-09?12:05??Explorer_dev\Explorer_dev\Explorer_dev.v12.suo
?????文件??????27812??2016-08-15?15:07??Explorer_dev\Explorer_dev\Form1.cs
?????文件??????33729??2016-08-15?15:07??Explorer_dev\Explorer_dev\Form1.Designer.cs
?????文件?????136494??2016-08-15?15:07??Explorer_dev\Explorer_dev\Form1.resx
?????文件?????150698??2016-08-10?15:35??Explorer_dev\Explorer_dev\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7970??2016-08-09?12:07??Explorer_dev\Explorer_dev\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????1654??2016-09-20?14:43??Explorer_dev\Explorer_dev\obj\Debug\Explorer_dev.csproj.FileListAbsolute.txt
?????文件????????977??2016-08-15?15:07??Explorer_dev\Explorer_dev\obj\Debug\Explorer_dev.csproj.GenerateResource.Cache
?????文件?????133447??2016-08-09?12:09??Explorer_dev\Explorer_dev\obj\Debug\Explorer_dev.csprojResolveAssemblyReference.cache
?????文件??????87343??2016-08-15?15:07??Explorer_dev\Explorer_dev\obj\Debug\Explorer_dev.Form1.resources
?????文件????????863??2016-08-09?08:40??Explorer_dev\Explorer_dev\obj\Debug\GridControlTest.csproj.FileListAbsolute.txt
?????文件????????977??2016-08-08?17:32??Explorer_dev\Explorer_dev\obj\Debug\GridControlTest.csproj.GenerateResource.Cache
?????文件?????133447??2016-08-08?12:26??Explorer_dev\Explorer_dev\obj\Debug\GridControlTest.csprojResolveAssemblyReference.cache
?????文件?????123392??2016-08-15?15:07??Explorer_dev\Explorer_dev\obj\Debug\GridControlTest.exe
............此處省略30個文件信息
- 上一篇:資源NGUI
- 下一篇:火狐restclient插件
評論
共有 條評論