• 大小: 1.54MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-12
  • 语言: C#
  • 标签: C#  图片管家  

资源简介

可以进入08韦清松图片管家\PictureManage\bin\Debug下寻找.exe执行文件执行查看。也可以部署在vs环境下修改运行。 实现功能:图片的分类,增删查及自动播放等等。界面优美,简单大方。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;

namespace PictureManage
{
    public partial class Form1 : Form
    {
       
      public ArrayList myArrayList = new ArrayList();
      public ArrayList myArrayListCur = new ArrayList();
        public Form1()
        {
            InitializeComponent();
            this.skinEngine1.SkinFile = “WaveColor2.ssk“;
        }
       
        private void Form1_Load(object sender EventArgs e)
        {
            //判断类别文件是不是存在,如果存在就读取数据
            if (System.IO.File.Exists(Application.StartupPath + “\\class.dat“))
            {
                //创建StreamReader实例,路径是在当前运行程序的目录下
                System.IO.StreamReader myReadClass = new
                System.IO.StreamReader(Application.StartupPath + “\\class.dat“);
                string infoclass =““;
                //判断是不是到文件的末尾
                while((infoclass=myReadClass.ReadLine())!=“end“)
                {
                    this.treeViewShow.Nodes.Add(infoclass);
                }
                //关闭文件的读写
                myReadClass.Close();
            }
            //判断图片信息文件是不是存在,如果存在就读取数据。
            if (System.IO.File.Exists(Application.StartupPath + “\\picdata.dat“))
            {
                //创建StreamReader实例,路径是在当前运行程序的目录下
                System.IO.StreamReader myReadPicture = new
                System.IO.StreamReader(Application.StartupPath + “\\class.dat“);
                string infoPic = ““;
                //判断是不是到文件的末尾
                while ((infoPic = myReadPicture.ReadLine()) != “end“)
                {
                    string[] myPictureMessage = infoPic.Split(‘‘);
                    //以“,”分开读取的信息,并存到数组中。
                    //判断数组是不是等于3.
                    if (myPictureMessage.Length >= 3)
                    {
                        //向动态数组中加入Picture类的实例。
                        this.myArrayList.Add(new Picture(myPictureMessage[2] myPictureMessage[0] myPictureMessage[1]));
                    }
                }
                for (int i = 0; i < this.treeViewShow.Nodes.Count; i++)
                {
                    for (int j = 0; j < this.myArrayList.Count; j++)
                    {
                        if (((Picture)myArrayList[j]).picClass == this.treeViewShow.Nodes[i].ToString())
                        {
                            this.treeViewShow.SelectedNode = this.treeViewShow.Nodes[i];
                            this.treeViewShow.SelectedNode.Nodes.Add(((Picture)myArrayList[j]).picName);
                        }
                    }
                }
                //关闭文件
                myReadPicture.Close();
            }
        }
        //存储函数,在程序关闭前把动态数组中存放的信息写到文件中也把分类信息写到文件中。
        private void save()
        {
            System.IO.StreamWri

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     516096  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\IrisSkin2.dll

     文件      18988  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\Longhorn.ssk

     文件      62572  2006-03-22 06:35  08韦清松图片管家\PictureManage\bin\Debug\mdb_spring.ssk

     文件      15899  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\MP10.SSK

     文件      32768  2011-05-09 16:02  08韦清松图片管家\PictureManage\bin\Debug\PictureManage.exe

     文件      46592  2011-05-09 16:02  08韦清松图片管家\PictureManage\bin\Debug\PictureManage.pdb

     文件       5632  2005-12-08 14:51  08韦清松图片管家\PictureManage\bin\Debug\PictureManage.vshost.exe

     文件      29210  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\SteelBlack.ssk

     文件      12416  2006-03-22 06:31  08韦清松图片管家\PictureManage\bin\Debug\WarmColor3.ssk

     文件      43378  2006-03-22 06:33  08韦清松图片管家\PictureManage\bin\Debug\WaveColor1.ssk

     文件      45510  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\WaveColor2.ssk

     文件      13189  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\XPBlue.ssk

     文件      16133  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\XPGreen.ssk

     文件      13180  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\XPOrange.ssk

     文件      12600  2009-04-03 14:37  08韦清松图片管家\PictureManage\bin\Debug\XPSilver.ssk

     文件      26440  2011-05-11 11:54  08韦清松图片管家\PictureManage\Form1.cs

     文件      19367  2011-05-09 16:02  08韦清松图片管家\PictureManage\Form1.Designer.cs

     文件       6817  2011-05-09 16:02  08韦清松图片管家\PictureManage\Form1.resx

     文件        842  2011-05-09 16:02  08韦清松图片管家\PictureManage\obj\Debug\PictureManage.csproj.GenerateResource.Cache

     文件      32768  2011-05-09 16:02  08韦清松图片管家\PictureManage\obj\Debug\PictureManage.exe

     文件        180  2011-05-09 16:02  08韦清松图片管家\PictureManage\obj\Debug\PictureManage.Form1.resources

     文件      46592  2011-05-09 16:02  08韦清松图片管家\PictureManage\obj\Debug\PictureManage.pdb

     文件        180  2011-05-09 13:21  08韦清松图片管家\PictureManage\obj\Debug\PictureManage.Properties.Resources.resources

     文件       5643  2011-05-09 13:38  08韦清松图片管家\PictureManage\obj\Debug\ResolveAssemblyReference.cache

     文件       4448  2011-05-31 17:53  08韦清松图片管家\PictureManage\obj\PictureManage.csproj.FileListAbsolute.txt

     文件        876  2011-04-25 14:45  08韦清松图片管家\PictureManage\Picture.cs

     文件       3420  2011-05-09 14:59  08韦清松图片管家\PictureManage\PictureManage.csproj

     文件        914  2011-05-09 14:59  08韦清松图片管家\PictureManage\PictureManage.sln

    ..A..H.     16384  2011-05-31 17:53  08韦清松图片管家\PictureManage\PictureManage.suo

     文件        472  2011-04-25 14:04  08韦清松图片管家\PictureManage\Program.cs

............此处省略29个文件信息

评论

共有 条评论