资源简介
图片与视频播放器带加密功能- C#源码图片与视频播放器带加密功能- C#源码图片与视频播放器带加密功能- C#源码图片与视频播放器带加密功能- C#源码图片与视频播放器带加密功能- C#源码图片与视频播放器带加密功能- C#源码
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Threading;
using System.Security;
using System.Security.Cryptography;
using System.Text.Regularexpressions;
namespace TNMediaViewer
{
public partial class Form1 : Form
{
Bitmap _CurrentPic = null;
string _DefaultPhotoExts = “.jpg|.jpeg|.gif|.bmp|.tif“;
string _DefaultWMExts = “.asf|.wma|.avi|.mp3|.mp2|.mpa|.mid|.midi|.rmi|.aif|.aifc|.aiff|.au|.snd|.wav|.cda|.wmv|.wm|.dvr-ms|.mpe|.mpeg|.mpg|.m1v|.vob“;
string _CurrentFileExt;
string _FavFolderPath = ““;
ListBox _CutFiles = new ListBox();
TreeNode _CutNode = null;
Thread _CreateThumbListThread = null;
List _ThumbList = new List();
int _MaxThumbPerThreadRun = 10;
string _CurrentPassword = ““;
MemoryStream _MSErrorImage = new MemoryStream();
public Form1()
{
InitializeComponent();
Thread th = new Thread(new ThreadStart(DoSplash));
th.Start();
PopulateTreeView();
if (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width >= 1024)
{
this.Width = 1024;
this.Height = 768;
}
else
{
this.Width = 800;
this.Height = 600;
}
splitContainer2.SplitterDistance = splitContainer2.Height - 45;
System.Drawing.Bitmap bitmap1 = TNMediaViewer.Properties.Resources.error_triangle;
bitmap1.Save(_MSErrorImage System.Drawing.Imaging.ImageFormat.Bmp);
// Retrieve Favorite
_FavFolderPath = GetRegistryKey(“FavFolderPath“);
if (_FavFolderPath != ““)
{
OpenFavoriteMenuItem.ToolTipText = _FavFolderPath;
}
else
{
OpenFavoriteMenuItem.Enabled = false;
}
string PhotoExts = GetRegistryKey(“PhotoExts“);
if (PhotoExts == ““) PhotoExts = _DefaultPhotoExts;
PopulatePhotoExtsList(PhotoExts);
string MediaExts = GetRegistryKey(“MediaExts“);
if (MediaExts == ““) MediaExts = _DefaultWMExts;
PopulateMediaExtsList(MediaExts);
LimitViewableMenuItem.Image = TNMediaViewer.Properties.Resources.icon_check;
this.Closed += new EventHandler(Form1_Closed);
System.Threading.Thread.Sleep(1000);
th.Abort();
System.Threading.Thread.Sleep(1000); // give system enough t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 929 2008-07-30 10:44 TNMediaViewer\TNMediaViewer.sln
文件 24064 2009-02-18 13:39 TNMediaViewer\TNMediaViewer.suo
目录 0 2009-02-18 13:37 TNMediaViewer\TNMediaViewer\
目录 0 2009-02-11 09:59 TNMediaViewer\TNMediaViewer\bin\
目录 0 2009-02-18 11:35 TNMediaViewer\TNMediaViewer\bin\Debug\
文件 61440 2008-08-04 12:49 TNMediaViewer\TNMediaViewer\bin\Debug\AxInterop.WMPLib.dll
文件 143360 2006-08-23 08:15 TNMediaViewer\TNMediaViewer\bin\Debug\FileBrowser.dll
文件 331776 2008-08-04 12:49 TNMediaViewer\TNMediaViewer\bin\Debug\Interop.WMPLib.dll
文件 253952 2009-02-18 13:38 TNMediaViewer\TNMediaViewer\bin\Debug\TNMediaViewer.exe
文件 14328 2009-02-18 13:38 TNMediaViewer\TNMediaViewer\bin\Debug\TNMediaViewer.vshost.exe
文件 490 2007-07-21 00:33 TNMediaViewer\TNMediaViewer\bin\Debug\TNMediaViewer.vshost.exe.manifest
文件 1270 2008-09-29 12:39 TNMediaViewer\TNMediaViewer\Bitmap1.bmp
文件 55083 2009-02-18 13:37 TNMediaViewer\TNMediaViewer\Form1.cs
文件 61791 2009-02-18 12:41 TNMediaViewer\TNMediaViewer\Form1.Designer.cs
文件 50434 2009-02-18 12:41 TNMediaViewer\TNMediaViewer\Form1.resx
文件 25214 2008-09-29 12:14 TNMediaViewer\TNMediaViewer\MySite.ico
文件 505 2008-09-29 14:04 TNMediaViewer\TNMediaViewer\Program.cs
目录 0 2009-02-16 12:22 TNMediaViewer\TNMediaViewer\Properties\
文件 1438 2008-07-30 10:43 TNMediaViewer\TNMediaViewer\Properties\AssemblyInfo.cs
文件 5198 2009-02-16 12:22 TNMediaViewer\TNMediaViewer\Properties\Resources.Designer.cs
文件 8222 2009-02-16 12:22 TNMediaViewer\TNMediaViewer\Properties\Resources.resx
文件 1098 2008-07-30 10:43 TNMediaViewer\TNMediaViewer\Properties\Settings.Designer.cs
文件 249 2008-07-30 10:43 TNMediaViewer\TNMediaViewer\Properties\Settings.settings
目录 0 2009-02-17 14:25 TNMediaViewer\TNMediaViewer\Resources\
文件 67 2008-08-08 11:08 TNMediaViewer\TNMediaViewer\Resources\delete_icon_sml.gif
文件 6966 2009-02-17 14:23 TNMediaViewer\TNMediaViewer\Resources\error_triangle.bmp
文件 894 2008-08-11 10:14 TNMediaViewer\TNMediaViewer\Resources\Fav.bmp
文件 231 2008-08-11 10:16 TNMediaViewer\TNMediaViewer\Resources\folderFavoriteSmall.gif
文件 887 2008-08-08 10:40 TNMediaViewer\TNMediaViewer\Resources\hidden.gif
文件 931 2009-02-11 10:46 TNMediaViewer\TNMediaViewer\Resources\icon_check.gif
文件 241 2008-08-11 10:12 TNMediaViewer\TNMediaViewer\Resources\icon-folder-load.gif
............此处省略11个文件信息
- 上一篇:C# 员工信息管理系统 GUI
- 下一篇:C#语言的各阶牛顿迭代法比较有源码
评论
共有 条评论