这是这个工具的最后一个窗体了,没什么技术含量,用了2个Panel ,6个Label,主要用来显示界面效果如图:
代码如下:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace ResourceFile
{
public partial class HelpFile : Form
{
Main main;
bool isEnglish;
string[] chinese = { "帮助 - L.E.O"
, "制作资源文件"
, "查看资源文件"
, "生成DLL链接库"
, "DLL使用文档"
, "版本信息"
, "***************************************************\r\n添加时将图片文件通过拖拽图标进窗体或单击添加按钮添加到列表;\r\n删除时通过选中要移除项,单击删除按钮删除;\r\n添加完成后,单击路劲显示框选择保存路径与名称,单击开始按钮开始生成;\r\n生成成功后选择继续生成或退出到主界面.\r\n***************************************************"
, "***************************************************\r\n单击文件路径显示框,选择要打开的资源文件,单击打开即可浏览;\r\n提取一个文件时,现在左侧列表选中要提取的图片,再单击提取,\r\n选择好路径、名称、类型后,点击确认即可;\r\n提取全部与提取一个方法相同;\r\n如遇提取后图片失真严重,请尝试更换格式重新生成;\r\n***************************************************"
, "***************************************************\r\n选择保存的路径与名称,直接生成即可.\r\n***************************************************"
, "***************************************************\r\n类LoadImage包含一个有参构造函数,一个方法;\r\npublicLoadImage(string path) path 资源文件路径;\r\npublic Image[] GetImage();\r\n可以通过类LoadImage实例化对象调用GetImage()获得Image[],\r\n注意判断读取失败的情况,读取失败时返回值为null;\r\n***************************************************"
, "***************************************************\r\n作者:L.E.O\r\nQQ:17227720\r\nBLOG: http://www.cnblogs.com/leo17227720/ \r\n版本 : 1.0.0.0\r\n***************************************************"
};
string[] english = { "Help - L.E.O"
, "Making Resource File"
, "View Resource File"
, "Produce DLL Library"
, "DLL document use"
, "Version information"
, "***************************************************\r\nAdd the image files by dragging the icon into the form and click the Add button to add to the list;\r\nDelete to remove by selected, click the delete button to delete;\r\nAdd a finished, click the road Jin display box select save path and name, click the start button to start generating;\r\nGeneration after successful choose to generate or withdraw from the main interface.\r\n***************************************************"
, "***************************************************\r\nClick the file path display box, choose to open the resource file, click open to browse;\r\nExtraction of a file, now the left list of selected to extract the picture, and then click the extract,\r\nChoose a good path, name, type, click OK;\r\nExtraction and extraction of a method for the same;\r\nIf the extracted image distortion seriously, try changing the format to generate;\r\n***************************************************"
, "***************************************************\r\nThe option to save the path and name, can be directly generated.\r\n***************************************************"
, "***************************************************\r\nClass LoadImage contains a parametric constructor, a method;\r\nPublic LoadImage(string path) path resource file path;\r\nPublic Image[] GetImage();\r\nThrough the LoadImage to instantiate an object called GetImage() Image[],\r\nPay attention to whether the read failed, failed to read returned when the value of null;\r\n***************************************************"
, "***************************************************\r\nAuthor: L.E.O\r\nQQ: 17227720\r\nBLOG:http://www.cnblogs.com/leo17227720/\r\nVersion : 1.0.0.0\r\n***************************************************"
};
public HelpFile(Main m, bool e)
{
main = m;
isEnglish = e;
InitializeComponent();
if (isEnglish)
{
this.Text = english[0];
label1.Text = english[1];
label2.Text = english[2];
label3.Text = english[3];
label4.Text = english[4];
label5.Text = english[5];
label6.Text = english[6];
}
else
{
this.Text = chinese[0];
label1.Text = chinese[1];
label2.Text = chinese[2];
label3.Text = chinese[3];
label4.Text = chinese[4];
label5.Text = chinese[5];
label6.Text = chinese[6];
}
label1.BackColor = Color.Blue;
label1.ForeColor = Color.White;
label6.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
private void HelpFile_FormClosed(object sender, FormClosedEventArgs e)
{
main.Show();
}
private void label1_MouseEnter(object sender, EventArgs e)
{
if (((Label)sender).BackColor != Color.Blue)
((Label)sender).BackColor = Color.White;
}
private void label1_MouseLeave(object sender, EventArgs e)
{
if (((Label)sender).BackColor != Color.Blue)
((Label)sender).BackColor = Color.AliceBlue;
}
private void label1_Click(object sender, EventArgs e)
{
for (int i = 0; i < panel1.Controls.Count; i++)
{
panel1.Controls[i].BackColor = Color.AliceBlue;
panel1.Controls[i].ForeColor = Color.Black;
}
((Label)sender).BackColor = Color.Blue;
((Label)sender).ForeColor = Color.White;
if (isEnglish)
{
label6.Text = english[Convert.ToInt32(((Label)sender).Tag) + 5];
}
else
{
label6.Text = chinese[Convert.ToInt32(((Label)sender).Tag) + 5];
}
}
}
}