### 2021-02-28更新
------ #### SuperDesign V2.0.2102.2801 - *.[新增]支持毕方3.0标准。 - *.[新增]支持查看和修改项目信息。 - *.[新增]支持修改C#编译选项,按条件编译。 - *.[新增]RyProject新增支持获取项目版本信息函数。
This commit is contained in:
1 parent
a955c10aab
commit
2d3bb192f9
20 files changed
+30073
-982
No files matched your search
@@ -380,7 +380,7 @@ namespace 开发辅助工具.Manager
|
||||
text += item;
|
||||
void ChangeVer(string id)
|
||||
{
|
||||
string ver = item.GetStr(id, "\")]", 0, out int pos, "");
|
||||
string ver = item.GetStr(id, "\")]", 0, out _, "");
|
||||
if (ver != "")
|
||||
{
|
||||
string[] ver_list = ver.Split('.');
|
||||
@@ -410,6 +410,52 @@ namespace 开发辅助工具.Manager
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取版本信息
|
||||
/// </summary>
|
||||
/// <param name="AssemblyInfo_Path"></param>
|
||||
public static VerInfo GetVerInfo(string AssemblyInfo_Path)
|
||||
{
|
||||
string AssemblyInfo_path = AssemblyInfo_Path;
|
||||
var ver = new VerInfo();
|
||||
if (System.IO.File.Exists(AssemblyInfo_path))
|
||||
{
|
||||
string[] AssemblyInfo_list = ryCommon.RyFiles.ReadAllLines(AssemblyInfo_path);
|
||||
for (int i = 0; i < AssemblyInfo_list.Length; i++)
|
||||
{
|
||||
string item = AssemblyInfo_list[i];
|
||||
if (item.IndexOf("[assembly: AssemblyVersion(\"") == 0)
|
||||
{
|
||||
ver.Version= item.GetStr("[assembly: AssemblyVersion(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyFileVersion(\"") == 0)
|
||||
{
|
||||
ver.FileVersion = item.GetStr("[assembly: AssemblyFileVersion(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyTitle(\"") == 0)
|
||||
{
|
||||
ver.Title = item.GetStr("[assembly: AssemblyTitle(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyDescription(\"") == 0)
|
||||
{
|
||||
ver.Description = item.GetStr("[assembly: AssemblyDescription(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyCompany(\"") == 0)
|
||||
{
|
||||
ver.Company = item.GetStr("[assembly: AssemblyCompany(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyProduct(\"") == 0)
|
||||
{
|
||||
ver.Product = item.GetStr("[assembly: AssemblyProduct(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
else if (item.IndexOf("[assembly: AssemblyCopyright(\"") == 0)
|
||||
{
|
||||
ver.Copyright = item.GetStr("[assembly: AssemblyCopyright(\"", "\")]", 0, out _, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
return ver;
|
||||
}
|
||||
/// <summary>
|
||||
/// 等待进程执行完毕
|
||||
/// </summary>
|
||||
/// <param name="cmd_text"></param>
|
||||
@@ -553,4 +599,14 @@ namespace 开发辅助工具.Manager
|
||||
}
|
||||
}
|
||||
}
|
||||
public class VerInfo
|
||||
{
|
||||
public string Title { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public string Company { get; set; } = "";
|
||||
public string Product { get; set; } = "";
|
||||
public string Copyright { get; set; } = "";
|
||||
public string Version { get; set; } = "";
|
||||
public string FileVersion { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("开发辅助工具")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018-2020")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018-2021")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.0.2102.2201")]
|
||||
[assembly: AssemblyFileVersion("2.0.2102.2201")]
|
||||
[assembly: AssemblyVersion("2.0.2102.2801")]
|
||||
[assembly: AssemblyFileVersion("2.0.2102.2801")]
|
||||
@@ -18,7 +18,7 @@
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Bin\Debug\SuperDesign\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
|
||||
@@ -1,312 +1,312 @@
|
||||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
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.Xml;
|
||||
using 开发辅助工具.Manager;
|
||||
|
||||
namespace 开发辅助工具.Tools
|
||||
{
|
||||
public partial class FrmCreateProject : Form
|
||||
{
|
||||
public FrmCreateProject()
|
||||
{
|
||||
ProcUse = true;
|
||||
InitializeComponent();
|
||||
CbbLang.SelectedIndex = 0;
|
||||
}
|
||||
bool ProcUse = false;
|
||||
RyProject project = new RyProject();
|
||||
private void FrmCreateProject_Load(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.RyFiles.AddDropDrag(TxtFolder.Handle).ElevatedDragDrop += FrmCreateProject_ElevatedDragDrop;
|
||||
project.CopyDllToBin = true;
|
||||
var lines = RyFiles.ReadAllLines(Application.StartupPath+"\\SysDb\\Folder.txt");
|
||||
for (int i = 0; i < lines.Length; i++)
|
||||
{
|
||||
var item = lines[i].Split('|');
|
||||
if(item.Length>=2)
|
||||
{
|
||||
if (System.IO.Directory.Exists(item[1]))
|
||||
{ AddItem(item[0], item[1]); }
|
||||
}
|
||||
}
|
||||
}
|
||||
private void AddItem(string name,string path)
|
||||
{
|
||||
XPTable.Models.Row itemList = new XPTable.Models.Row()
|
||||
{
|
||||
Tag = ""
|
||||
};
|
||||
//需要修改此处
|
||||
itemList.Cells.Add(new XPTable.Models.Cell(name));//示例
|
||||
var cell = new XPTable.Models.Cell(path);
|
||||
cell.ForeColor = Color.Gray;
|
||||
itemList.Cells.Add(cell);
|
||||
tableModel1.Rows.Add(itemList);
|
||||
}
|
||||
private void FrmCreateProject_ElevatedDragDrop(object sender, ElevatedDragDropArgs e)
|
||||
{
|
||||
TxtFolder.Text = e.Files[0];
|
||||
table1.Visible = false;
|
||||
}
|
||||
|
||||
private void BtnBrowser_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(folderBrowserDialog1.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
TxtFolder.Text = folderBrowserDialog1.SelectedPath;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnCreate_Click(object sender, EventArgs e)
|
||||
{
|
||||
var CshapeBasePath = project.CshapeBasePath;
|
||||
var ReferenceDllPath = project.ReferenceDllPath;
|
||||
var path = TxtFolder.Text.TrimEnd('\\');
|
||||
var project_name = TxtProjectName.Text;
|
||||
var project_Eng_name = TxtProjectEngName.Text;
|
||||
#region 判断项目是否符合标准
|
||||
if (!ryCommon.RyFiles.IsValidFileName(project_name))
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(中文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
if (!ryCommon.RyFiles.IsValidFileName(project_Eng_name) || !project_Eng_name.Replace(" ", "").IsEngOrNum())
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(英文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
else if (project_Eng_name.Length < 3 || project_Eng_name.Substring(0, 1).IsInt() || project_Eng_name.Substring(0, 1) == " ")
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(英文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
var full_path = path + "\\" + project_name;
|
||||
if(System.IO.Directory.Exists(path + "\\Bin") && System.IO.Directory.Exists(path + "\\Source"))
|
||||
{
|
||||
full_path = path;
|
||||
}
|
||||
ryCommon.RyFiles.CreateDirectory(full_path);
|
||||
if(!System.IO.Directory.Exists(full_path))
|
||||
{
|
||||
MessageBox.Show("创建路径失败。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);return;
|
||||
}
|
||||
#endregion
|
||||
BtnCreate.Enabled = false;
|
||||
var prog_lang = "c#";
|
||||
if (CbbLang.SelectedIndex == 0) { prog_lang = "c#"; }
|
||||
else if (CbbLang.SelectedIndex == 1) { prog_lang = "delphi"; }
|
||||
#region 创建项目必备文件夹和文件
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Bin\\Debug\\"+project_Eng_name);
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Source");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res\\ThirdParty");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res\\Images");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Green");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Green\\HistoryVer");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Install");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Install\\HistoryVer");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\OriginalFiles");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\UpdateFile");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Help");
|
||||
if (!System.IO.File.Exists(full_path + "\\CHANGELOG.md"))
|
||||
{ ryCommon.RyFiles.WriteAllText(full_path + "\\CHANGELOG.md", "", Encoding.UTF8); }
|
||||
if (!System.IO.File.Exists(full_path + "\\README.md"))
|
||||
{ ryCommon.RyFiles.WriteAllText(full_path + "\\README.md", "# "+ project_name+ "\r\n\r\n#### 介绍\r\n", Encoding.UTF8); }
|
||||
if (!System.IO.File.Exists(full_path + "\\Publish\\Publish.set"))
|
||||
{
|
||||
ryCommon.RyFiles.WriteAllText(full_path + "\\Publish\\Publish.set", "#del表示删除文件;copy表示复制文件;" +
|
||||
"\r\n#原目录:Bin\\Debug\\或Bin\\Release,目标目录:Publish\\OriginalFiles" +
|
||||
"\r\ndel:UserDb\r\ndel:Db\r\ncopy:SysDb\\*->SysDb\\", Encoding.UTF8);
|
||||
}
|
||||
#endregion
|
||||
if (prog_lang == "c#")
|
||||
{
|
||||
#region 生成混淆信息
|
||||
ReactorXML xml = new ReactorXML();
|
||||
xml.LoadXML(Application.StartupPath + "\\SysDb\\混淆.nrproj");
|
||||
if (!System.IO.File.Exists(full_path + "\\Bin\\混淆_Debug.nrproj"))
|
||||
{
|
||||
List<string> files_debug = new List<string>
|
||||
{
|
||||
"Debug\\"+project_Eng_name+"\\" + project_Eng_name + ".exe",
|
||||
"Debug\\"+project_Eng_name+"\\" + "MyDb.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "MyDb_SQLite.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "ryUpdate.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "ryControls.dll"
|
||||
};
|
||||
xml.Save(full_path + "\\Bin\\混淆_Debug.nrproj", files_debug);
|
||||
}
|
||||
if (!System.IO.File.Exists(full_path + "\\Bin\\混淆_Release.nrproj"))
|
||||
{
|
||||
List<string> files_Release = new List<string>
|
||||
{
|
||||
"Release\\"+project_Eng_name+"\\" + project_Eng_name + ".exe",
|
||||
"Release\\"+project_Eng_name+"\\" + "MyDb.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "MyDb_SQLite.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "ryUpdate.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "ryControls.dll"
|
||||
};
|
||||
xml.Save(full_path + "\\Bin\\混淆_Release.nrproj", files_Release);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#region 设置项目配置文件
|
||||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
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.Xml;
|
||||
using 开发辅助工具.Manager;
|
||||
|
||||
namespace 开发辅助工具.Tools
|
||||
{
|
||||
public partial class FrmCreateProject : Form
|
||||
{
|
||||
public FrmCreateProject()
|
||||
{
|
||||
ProcUse = true;
|
||||
InitializeComponent();
|
||||
CbbLang.SelectedIndex = 0;
|
||||
}
|
||||
bool ProcUse = false;
|
||||
RyProject project = new RyProject();
|
||||
private void FrmCreateProject_Load(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.RyFiles.AddDropDrag(TxtFolder.Handle).ElevatedDragDrop += FrmCreateProject_ElevatedDragDrop;
|
||||
project.CopyDllToBin = true;
|
||||
var lines = RyFiles.ReadAllLines(Application.StartupPath+"\\SysDb\\Folder.txt");
|
||||
for (int i = 0; i < lines.Length; i++)
|
||||
{
|
||||
var item = lines[i].Split('|');
|
||||
if(item.Length>=2)
|
||||
{
|
||||
if (System.IO.Directory.Exists(item[1]))
|
||||
{ AddItem(item[0], item[1]); }
|
||||
}
|
||||
}
|
||||
}
|
||||
private void AddItem(string name,string path)
|
||||
{
|
||||
XPTable.Models.Row itemList = new XPTable.Models.Row()
|
||||
{
|
||||
Tag = ""
|
||||
};
|
||||
//需要修改此处
|
||||
itemList.Cells.Add(new XPTable.Models.Cell(name));//示例
|
||||
var cell = new XPTable.Models.Cell(path);
|
||||
cell.ForeColor = Color.Gray;
|
||||
itemList.Cells.Add(cell);
|
||||
tableModel1.Rows.Add(itemList);
|
||||
}
|
||||
private void FrmCreateProject_ElevatedDragDrop(object sender, ElevatedDragDropArgs e)
|
||||
{
|
||||
TxtFolder.Text = e.Files[0];
|
||||
table1.Visible = false;
|
||||
}
|
||||
|
||||
private void BtnBrowser_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(folderBrowserDialog1.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
TxtFolder.Text = folderBrowserDialog1.SelectedPath;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnCreate_Click(object sender, EventArgs e)
|
||||
{
|
||||
var CshapeBasePath = project.CshapeBasePath;
|
||||
var ReferenceDllPath = project.ReferenceDllPath;
|
||||
var path = TxtFolder.Text.TrimEnd('\\');
|
||||
var project_name = TxtProjectName.Text;
|
||||
var project_Eng_name = TxtProjectEngName.Text;
|
||||
#region 判断项目是否符合标准
|
||||
if (!ryCommon.RyFiles.IsValidFileName(project_name))
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(中文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
if (!ryCommon.RyFiles.IsValidFileName(project_Eng_name) || !project_Eng_name.Replace(" ", "").IsEngOrNum())
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(英文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
else if (project_Eng_name.Length < 3 || project_Eng_name.Substring(0, 1).IsInt() || project_Eng_name.Substring(0, 1) == " ")
|
||||
{
|
||||
MessageBox.Show("无效的项目名称(英文)", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
|
||||
}
|
||||
var full_path = path + "\\" + project_name;
|
||||
if(System.IO.Directory.Exists(path + "\\Bin") && System.IO.Directory.Exists(path + "\\Source"))
|
||||
{
|
||||
full_path = path;
|
||||
}
|
||||
ryCommon.RyFiles.CreateDirectory(full_path);
|
||||
if(!System.IO.Directory.Exists(full_path))
|
||||
{
|
||||
MessageBox.Show("创建路径失败。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);return;
|
||||
}
|
||||
#endregion
|
||||
BtnCreate.Enabled = false;
|
||||
var prog_lang = "c#";
|
||||
if (CbbLang.SelectedIndex == 0) { prog_lang = "c#"; }
|
||||
else if (CbbLang.SelectedIndex == 1) { prog_lang = "delphi"; }
|
||||
#region 创建项目必备文件夹和文件
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Bin\\Debug\\"+project_Eng_name);
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Source");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res\\ThirdParty");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Res\\Images");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Green");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Green\\HistoryVer");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Install");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\Install\\HistoryVer");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\OriginalFiles");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Publish\\UpdateFile");
|
||||
ryCommon.RyFiles.CreateDirectory(full_path + "\\Help");
|
||||
if (!System.IO.File.Exists(full_path + "\\CHANGELOG.md"))
|
||||
{ ryCommon.RyFiles.WriteAllText(full_path + "\\CHANGELOG.md", "", Encoding.UTF8); }
|
||||
if (!System.IO.File.Exists(full_path + "\\README.md"))
|
||||
{ ryCommon.RyFiles.WriteAllText(full_path + "\\README.md", "# "+ project_name+ "\r\n\r\n#### 介绍\r\n", Encoding.UTF8); }
|
||||
if (!System.IO.File.Exists(full_path + "\\Publish\\Publish.set"))
|
||||
{
|
||||
ryCommon.RyFiles.WriteAllText(full_path + "\\Publish\\Publish.set", "#del表示删除文件;copy表示复制文件;" +
|
||||
"\r\n#原目录:Bin\\Debug\\或Bin\\Release,目标目录:Publish\\OriginalFiles" +
|
||||
"\r\ndel:UserDb\r\ndel:Db\r\ncopy:SysDb\\*->SysDb\\", Encoding.UTF8);
|
||||
}
|
||||
#endregion
|
||||
if (prog_lang == "c#")
|
||||
{
|
||||
#region 生成混淆信息
|
||||
ReactorXML xml = new ReactorXML();
|
||||
xml.LoadXML(Application.StartupPath + "\\SysDb\\混淆.nrproj");
|
||||
if (!System.IO.File.Exists(full_path + "\\Bin\\混淆_Debug.nrproj"))
|
||||
{
|
||||
List<string> files_debug = new List<string>
|
||||
{
|
||||
"Debug\\"+project_Eng_name+"\\" + project_Eng_name + ".exe",
|
||||
"Debug\\"+project_Eng_name+"\\" + "MyDb.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "MyDb_SQLite.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "ryUpdate.dll",
|
||||
"Debug\\"+project_Eng_name+"\\" + "ryControls.dll"
|
||||
};
|
||||
xml.Save(full_path + "\\Bin\\混淆_Debug.nrproj", files_debug);
|
||||
}
|
||||
if (!System.IO.File.Exists(full_path + "\\Bin\\混淆_Release.nrproj"))
|
||||
{
|
||||
List<string> files_Release = new List<string>
|
||||
{
|
||||
"Release\\"+project_Eng_name+"\\" + project_Eng_name + ".exe",
|
||||
"Release\\"+project_Eng_name+"\\" + "MyDb.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "MyDb_SQLite.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "ryUpdate.dll",
|
||||
"Release\\"+project_Eng_name+"\\" + "ryControls.dll"
|
||||
};
|
||||
xml.Save(full_path + "\\Bin\\混淆_Release.nrproj", files_Release);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#region 设置项目配置文件
|
||||
ryCommon.Ini ini = new ryCommon.Ini(full_path + "\\查看项目.ryp");
|
||||
ini.WriteIni("project", "name", project_name);//项目名称
|
||||
ini.WriteIni("project", "engname", project_Eng_name);//英文项目名称
|
||||
ini.WriteIni("project", "usqver", 2.1);//使用的标准版本,新毕方项目标准基于USQ 2.1
|
||||
ini.WriteIni("project", "usqver", 3);//使用的标准版本,新毕方项目标准基于USQ 3
|
||||
ini.WriteIni("project", "proglang", prog_lang);//项目使用的语言
|
||||
var guid = ini.ReadIni("project", "progID", Guid.NewGuid().ToString("D"));
|
||||
ini.WriteIni("project", "progID", guid);//项目唯一ID,用于区分不同项目
|
||||
|
||||
if (!System.IO.File.Exists(full_path + "\\.gitignore")) //复制git忽略规则
|
||||
{
|
||||
RyFiles.CopyFile(Application.StartupPath+ "\\SysDb\\.gitignore", full_path + "\\.gitignore");
|
||||
}
|
||||
#endregion
|
||||
if (!ChkUnCreateProject.Checked)
|
||||
{
|
||||
#region 复制和修改基准项目
|
||||
if (System.IO.Directory.Exists(CshapeBasePath) && prog_lang == "c#") //存在基准项目
|
||||
{
|
||||
var source_folder = full_path + "\\Source\\" + project_Eng_name;
|
||||
ryCommon.RyFiles.CopyFile(CshapeBasePath + "\\*", source_folder);
|
||||
ryCommon.RyFiles.DeleteFile(source_folder + "\\Bin");
|
||||
ryCommon.RyFiles.DeleteFile(source_folder + "\\obj");
|
||||
if (System.IO.File.Exists(source_folder + "\\Itrycn_Project.csproj"))
|
||||
{
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project.csproj", source_folder + "\\" + project_Eng_name + ".csproj");
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project.csproj.user", source_folder + "\\" + project_Eng_name + ".csproj.user");
|
||||
}
|
||||
if (System.IO.File.Exists(source_folder + "\\Itrycn_Project2.csproj"))
|
||||
{
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project2.csproj", source_folder + "\\" + project_Eng_name + ".csproj");
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project2.csproj.user", source_folder + "\\" + project_Eng_name + ".csproj.user");
|
||||
}
|
||||
#region 写入新的版本信息
|
||||
var AssemblyInfo = ryCommon.RyFiles.ReadAllText(Application.StartupPath + "\\SysDb\\AssemblyInfo.cs");
|
||||
AssemblyInfo = AssemblyInfo.Replace("@AssemblyTitle", project_Eng_name);
|
||||
AssemblyInfo = AssemblyInfo.Replace("@AssemblyProduct", project_Eng_name);
|
||||
AssemblyInfo = AssemblyInfo.Replace("@Copyright", "Copyright 2010-2020");
|
||||
ryCommon.RyFiles.WriteAllText(source_folder + "\\Properties\\AssemblyInfo.cs", AssemblyInfo, Encoding.UTF8);
|
||||
#endregion
|
||||
#region 替换命名空间
|
||||
//var Resources = ryCommon.RyFiles.ReadAllText(source_folder + "\\Properties\\Resources.Designer.cs");
|
||||
//Resources = Resources.Replace("Itrycn_Project.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//Resources = Resources.Replace("Itrycn_Project2.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//ryCommon.RyFiles.WriteAllText(source_folder + "\\Properties\\Resources.Designer.cs", Resources, Encoding.UTF8);
|
||||
//var frmmain = ryCommon.RyFiles.ReadAllText(source_folder + "\\frmmain.Designer.cs");
|
||||
//frmmain = frmmain.Replace("Itrycn_Project.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//frmmain = frmmain.Replace("Itrycn_Project2.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//ryCommon.RyFiles.WriteAllText(source_folder + "\\frmmain.Designer.cs", frmmain, Encoding.UTF8);
|
||||
#endregion
|
||||
project.SetCSproj(source_folder + "\\" + project_Eng_name + ".csproj", project_Eng_name);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
BtnCreate.Enabled = true;
|
||||
MessageBox.Show("创建成功。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
RyFiles.OpenFile(full_path);
|
||||
}
|
||||
|
||||
private void TxtFolder_Enter(object sender, EventArgs e)
|
||||
{
|
||||
if (ProcUse) { return; }
|
||||
table1.Location = new Point(TxtFolder.Left,TxtFolder.Top+TxtFolder.Height);
|
||||
table1.Visible = true;
|
||||
table1.BringToFront();
|
||||
}
|
||||
|
||||
private void TxtFolder_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!table1.Focused)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!TxtFolder.Focused)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_CellLostFocus(object sender, XPTable.Events.CellFocusEventArgs e)
|
||||
{
|
||||
if (e.Row == -1) { table1.Visible = false; }
|
||||
}
|
||||
|
||||
private void TxtFolder_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Down)
|
||||
{
|
||||
if (table1.Visible)
|
||||
{
|
||||
table1.TableModel.Selections.Clear();
|
||||
table1.TableModel.Selections.AddCells(0, 0, 0, columnModel1.Columns.Count - 1);
|
||||
table1.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Up)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0 && table1.SelectedItems[0].Index == 0)
|
||||
{
|
||||
table1.TableModel.Selections.Clear();
|
||||
TxtFolder.Select();
|
||||
TxtFolder.SelectionLength = 0;
|
||||
//rySearch1.Select();
|
||||
}
|
||||
}
|
||||
else if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0)
|
||||
{
|
||||
TxtFolder.Text = table1.SelectedItems[0].Cells[ColPath].Text;
|
||||
TxtFolder.SelectionLength = 0;
|
||||
TxtFolder.SelectionStart = 0;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0)
|
||||
{
|
||||
TxtFolder.Text = table1.SelectedItems[0].Cells[ColPath].Text;
|
||||
TxtFolder.SelectionLength = 0;
|
||||
TxtFolder.SelectionStart = 0;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmCreateProject_Click(object sender, EventArgs e)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
|
||||
private void FrmCreateProject_Shown(object sender, EventArgs e)
|
||||
{
|
||||
ProcUse = false;
|
||||
}
|
||||
|
||||
private void TxtFolder_Click(object sender, EventArgs e)
|
||||
{
|
||||
table1.Location = new Point(TxtFolder.Left, TxtFolder.Top + TxtFolder.Height);
|
||||
table1.Visible = true;
|
||||
table1.BringToFront();
|
||||
}
|
||||
}
|
||||
}
|
||||
ini.WriteIni("project", "progID", guid);//项目唯一ID,用于区分不同项目
|
||||
|
||||
if (!System.IO.File.Exists(full_path + "\\.gitignore")) //复制git忽略规则
|
||||
{
|
||||
RyFiles.CopyFile(Application.StartupPath+ "\\SysDb\\.gitignore", full_path + "\\.gitignore");
|
||||
}
|
||||
#endregion
|
||||
if (!ChkUnCreateProject.Checked)
|
||||
{
|
||||
#region 复制和修改基准项目
|
||||
if (System.IO.Directory.Exists(CshapeBasePath) && prog_lang == "c#") //存在基准项目
|
||||
{
|
||||
var source_folder = full_path + "\\Source\\" + project_Eng_name;
|
||||
ryCommon.RyFiles.CopyFile(CshapeBasePath + "\\*", source_folder);
|
||||
ryCommon.RyFiles.DeleteFile(source_folder + "\\Bin");
|
||||
ryCommon.RyFiles.DeleteFile(source_folder + "\\obj");
|
||||
if (System.IO.File.Exists(source_folder + "\\Itrycn_Project.csproj"))
|
||||
{
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project.csproj", source_folder + "\\" + project_Eng_name + ".csproj");
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project.csproj.user", source_folder + "\\" + project_Eng_name + ".csproj.user");
|
||||
}
|
||||
if (System.IO.File.Exists(source_folder + "\\Itrycn_Project2.csproj"))
|
||||
{
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project2.csproj", source_folder + "\\" + project_Eng_name + ".csproj");
|
||||
ryCommon.RyFiles.MoveFile(source_folder + "\\Itrycn_Project2.csproj.user", source_folder + "\\" + project_Eng_name + ".csproj.user");
|
||||
}
|
||||
#region 写入新的版本信息
|
||||
var AssemblyInfo = ryCommon.RyFiles.ReadAllText(Application.StartupPath + "\\SysDb\\AssemblyInfo.cs");
|
||||
AssemblyInfo = AssemblyInfo.Replace("@AssemblyTitle", project_Eng_name);
|
||||
AssemblyInfo = AssemblyInfo.Replace("@AssemblyProduct", project_Eng_name);
|
||||
AssemblyInfo = AssemblyInfo.Replace("@Copyright", "Copyright 2010-2020");
|
||||
ryCommon.RyFiles.WriteAllText(source_folder + "\\Properties\\AssemblyInfo.cs", AssemblyInfo, Encoding.UTF8);
|
||||
#endregion
|
||||
#region 替换命名空间
|
||||
//var Resources = ryCommon.RyFiles.ReadAllText(source_folder + "\\Properties\\Resources.Designer.cs");
|
||||
//Resources = Resources.Replace("Itrycn_Project.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//Resources = Resources.Replace("Itrycn_Project2.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//ryCommon.RyFiles.WriteAllText(source_folder + "\\Properties\\Resources.Designer.cs", Resources, Encoding.UTF8);
|
||||
//var frmmain = ryCommon.RyFiles.ReadAllText(source_folder + "\\frmmain.Designer.cs");
|
||||
//frmmain = frmmain.Replace("Itrycn_Project.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//frmmain = frmmain.Replace("Itrycn_Project2.Properties", project_Eng_name.Replace(" ", "") + ".Properties");
|
||||
//ryCommon.RyFiles.WriteAllText(source_folder + "\\frmmain.Designer.cs", frmmain, Encoding.UTF8);
|
||||
#endregion
|
||||
project.SetCSproj(source_folder + "\\" + project_Eng_name + ".csproj", project_Eng_name);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
BtnCreate.Enabled = true;
|
||||
MessageBox.Show("创建成功。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
RyFiles.OpenFile(full_path);
|
||||
}
|
||||
|
||||
private void TxtFolder_Enter(object sender, EventArgs e)
|
||||
{
|
||||
if (ProcUse) { return; }
|
||||
table1.Location = new Point(TxtFolder.Left,TxtFolder.Top+TxtFolder.Height);
|
||||
table1.Visible = true;
|
||||
table1.BringToFront();
|
||||
}
|
||||
|
||||
private void TxtFolder_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!table1.Focused)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!TxtFolder.Focused)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_CellLostFocus(object sender, XPTable.Events.CellFocusEventArgs e)
|
||||
{
|
||||
if (e.Row == -1) { table1.Visible = false; }
|
||||
}
|
||||
|
||||
private void TxtFolder_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Down)
|
||||
{
|
||||
if (table1.Visible)
|
||||
{
|
||||
table1.TableModel.Selections.Clear();
|
||||
table1.TableModel.Selections.AddCells(0, 0, 0, columnModel1.Columns.Count - 1);
|
||||
table1.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Up)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0 && table1.SelectedItems[0].Index == 0)
|
||||
{
|
||||
table1.TableModel.Selections.Clear();
|
||||
TxtFolder.Select();
|
||||
TxtFolder.SelectionLength = 0;
|
||||
//rySearch1.Select();
|
||||
}
|
||||
}
|
||||
else if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0)
|
||||
{
|
||||
TxtFolder.Text = table1.SelectedItems[0].Cells[ColPath].Text;
|
||||
TxtFolder.SelectionLength = 0;
|
||||
TxtFolder.SelectionStart = 0;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void table1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length > 0)
|
||||
{
|
||||
TxtFolder.Text = table1.SelectedItems[0].Cells[ColPath].Text;
|
||||
TxtFolder.SelectionLength = 0;
|
||||
TxtFolder.SelectionStart = 0;
|
||||
table1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmCreateProject_Click(object sender, EventArgs e)
|
||||
{
|
||||
table1.Visible = false;
|
||||
}
|
||||
|
||||
private void FrmCreateProject_Shown(object sender, EventArgs e)
|
||||
{
|
||||
ProcUse = false;
|
||||
}
|
||||
|
||||
private void TxtFolder_Click(object sender, EventArgs e)
|
||||
{
|
||||
table1.Location = new Point(TxtFolder.Left, TxtFolder.Top + TxtFolder.Height);
|
||||
table1.Visible = true;
|
||||
table1.BringToFront();
|
||||
}
|
||||
}
|
||||
}
|
||||
+260
-260
@@ -28,266 +28,266 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEncode));
|
||||
this.RbChsToUnicode = new System.Windows.Forms.RadioButton();
|
||||
this.RbUnicodeToChs = new System.Windows.Forms.RadioButton();
|
||||
this.CbbEncodingCode = new ryControls.RyComboBox();
|
||||
this.RbURLDecode = new System.Windows.Forms.RadioButton();
|
||||
this.RbURLEncode = new System.Windows.Forms.RadioButton();
|
||||
this.RbBase64Decode = new System.Windows.Forms.RadioButton();
|
||||
this.RbBase64Encode = new System.Windows.Forms.RadioButton();
|
||||
this.TxtResultCode = new ryControls.TextBoxEx2();
|
||||
this.menuRight1 = new ryPaiban.Model.MenuRight(this.components);
|
||||
this.RbChsToUTF8 = new System.Windows.Forms.RadioButton();
|
||||
this.RbUTF8ToChs = new System.Windows.Forms.RadioButton();
|
||||
this.RbMD5 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA1 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA256 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA224 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA512 = new System.Windows.Forms.RadioButton();
|
||||
this.TxtFromCode = new ryControls.Controls.RichTextBox2();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// RbChsToUnicode
|
||||
//
|
||||
this.RbChsToUnicode.AutoSize = true;
|
||||
this.RbChsToUnicode.Location = new System.Drawing.Point(463, 8);
|
||||
this.RbChsToUnicode.Name = "RbChsToUnicode";
|
||||
this.RbChsToUnicode.Size = new System.Drawing.Size(101, 16);
|
||||
this.RbChsToUnicode.TabIndex = 21;
|
||||
this.RbChsToUnicode.Text = "中文转Unicode";
|
||||
this.RbChsToUnicode.UseVisualStyleBackColor = true;
|
||||
this.RbChsToUnicode.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbUnicodeToChs
|
||||
//
|
||||
this.RbUnicodeToChs.AutoSize = true;
|
||||
this.RbUnicodeToChs.Location = new System.Drawing.Point(356, 8);
|
||||
this.RbUnicodeToChs.Name = "RbUnicodeToChs";
|
||||
this.RbUnicodeToChs.Size = new System.Drawing.Size(101, 16);
|
||||
this.RbUnicodeToChs.TabIndex = 20;
|
||||
this.RbUnicodeToChs.Text = "Unicode转中文";
|
||||
this.RbUnicodeToChs.UseVisualStyleBackColor = true;
|
||||
this.RbUnicodeToChs.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// CbbEncodingCode
|
||||
//
|
||||
this.CbbEncodingCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.CbbEncodingCode.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.CbbEncodingCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.CbbEncodingCode.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.CbbEncodingCode.FormattingEnabled = true;
|
||||
this.CbbEncodingCode.Items.AddRange(new object[] {
|
||||
"UTF8",
|
||||
"GBK",
|
||||
"GB2312",
|
||||
"ASCII",
|
||||
"Unicode"});
|
||||
this.CbbEncodingCode.Location = new System.Drawing.Point(817, 2);
|
||||
this.CbbEncodingCode.Name = "CbbEncodingCode";
|
||||
this.CbbEncodingCode.Size = new System.Drawing.Size(121, 22);
|
||||
this.CbbEncodingCode.TabIndex = 19;
|
||||
this.CbbEncodingCode.SelectedIndexChanged += new System.EventHandler(this.CbbEncodingCode_SelectedIndexChanged);
|
||||
//
|
||||
// RbURLDecode
|
||||
//
|
||||
this.RbURLDecode.AutoSize = true;
|
||||
this.RbURLDecode.Location = new System.Drawing.Point(273, 8);
|
||||
this.RbURLDecode.Name = "RbURLDecode";
|
||||
this.RbURLDecode.Size = new System.Drawing.Size(77, 16);
|
||||
this.RbURLDecode.TabIndex = 18;
|
||||
this.RbURLDecode.Text = "URLDecode";
|
||||
this.RbURLDecode.UseVisualStyleBackColor = true;
|
||||
this.RbURLDecode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbURLEncode
|
||||
//
|
||||
this.RbURLEncode.AutoSize = true;
|
||||
this.RbURLEncode.Location = new System.Drawing.Point(190, 8);
|
||||
this.RbURLEncode.Name = "RbURLEncode";
|
||||
this.RbURLEncode.Size = new System.Drawing.Size(77, 16);
|
||||
this.RbURLEncode.TabIndex = 17;
|
||||
this.RbURLEncode.Text = "URLEncode";
|
||||
this.RbURLEncode.UseVisualStyleBackColor = true;
|
||||
this.RbURLEncode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbBase64Decode
|
||||
//
|
||||
this.RbBase64Decode.AutoSize = true;
|
||||
this.RbBase64Decode.Location = new System.Drawing.Point(101, 8);
|
||||
this.RbBase64Decode.Name = "RbBase64Decode";
|
||||
this.RbBase64Decode.Size = new System.Drawing.Size(83, 16);
|
||||
this.RbBase64Decode.TabIndex = 16;
|
||||
this.RbBase64Decode.Text = "Base64解码";
|
||||
this.RbBase64Decode.UseVisualStyleBackColor = true;
|
||||
this.RbBase64Decode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbBase64Encode
|
||||
//
|
||||
this.RbBase64Encode.AutoSize = true;
|
||||
this.RbBase64Encode.Checked = true;
|
||||
this.RbBase64Encode.Location = new System.Drawing.Point(12, 8);
|
||||
this.RbBase64Encode.Name = "RbBase64Encode";
|
||||
this.RbBase64Encode.Size = new System.Drawing.Size(83, 16);
|
||||
this.RbBase64Encode.TabIndex = 15;
|
||||
this.RbBase64Encode.TabStop = true;
|
||||
this.RbBase64Encode.Text = "Base64编码";
|
||||
this.RbBase64Encode.UseVisualStyleBackColor = true;
|
||||
this.RbBase64Encode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// TxtResultCode
|
||||
//
|
||||
this.TxtResultCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.TxtResultCode.BackColor = System.Drawing.Color.White;
|
||||
this.TxtResultCode.EmptyText = "转换好后的内容";
|
||||
this.TxtResultCode.Location = new System.Drawing.Point(12, 234);
|
||||
this.TxtResultCode.MaxLength = 999999999;
|
||||
this.TxtResultCode.Multiline = true;
|
||||
this.TxtResultCode.Name = "TxtResultCode";
|
||||
this.TxtResultCode.OnlyNumeric = false;
|
||||
this.TxtResultCode.PasswordChar = '\0';
|
||||
this.TxtResultCode.ReadOnly = true;
|
||||
this.TxtResultCode.SelectedText = "";
|
||||
this.TxtResultCode.SelectionLength = 0;
|
||||
this.TxtResultCode.SelectionStart = 0;
|
||||
this.TxtResultCode.Size = new System.Drawing.Size(926, 204);
|
||||
this.TxtResultCode.TabIndex = 14;
|
||||
this.TxtResultCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.TxtResultCode.ToolTip = "";
|
||||
this.TxtResultCode.WordWrap = true;
|
||||
//
|
||||
// menuRight1
|
||||
//
|
||||
this.menuRight1.Name = "menuRight1";
|
||||
this.menuRight1.Size = new System.Drawing.Size(173, 48);
|
||||
this.menuRight1.SourceContent = this;
|
||||
//
|
||||
// RbChsToUTF8
|
||||
//
|
||||
this.RbChsToUTF8.AutoSize = true;
|
||||
this.RbChsToUTF8.Location = new System.Drawing.Point(665, 8);
|
||||
this.RbChsToUTF8.Name = "RbChsToUTF8";
|
||||
this.RbChsToUTF8.Size = new System.Drawing.Size(89, 16);
|
||||
this.RbChsToUTF8.TabIndex = 23;
|
||||
this.RbChsToUTF8.Text = "中文转UTF-8";
|
||||
this.RbChsToUTF8.UseVisualStyleBackColor = true;
|
||||
this.RbChsToUTF8.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbUTF8ToChs
|
||||
//
|
||||
this.RbUTF8ToChs.AutoSize = true;
|
||||
this.RbUTF8ToChs.Location = new System.Drawing.Point(570, 8);
|
||||
this.RbUTF8ToChs.Name = "RbUTF8ToChs";
|
||||
this.RbUTF8ToChs.Size = new System.Drawing.Size(89, 16);
|
||||
this.RbUTF8ToChs.TabIndex = 22;
|
||||
this.RbUTF8ToChs.Text = "UTF-8转中文";
|
||||
this.RbUTF8ToChs.UseVisualStyleBackColor = true;
|
||||
this.RbUTF8ToChs.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbMD5
|
||||
//
|
||||
this.RbMD5.AutoSize = true;
|
||||
this.RbMD5.Location = new System.Drawing.Point(12, 32);
|
||||
this.RbMD5.Name = "RbMD5";
|
||||
this.RbMD5.Size = new System.Drawing.Size(41, 16);
|
||||
this.RbMD5.TabIndex = 24;
|
||||
this.RbMD5.Text = "MD5";
|
||||
this.RbMD5.UseVisualStyleBackColor = true;
|
||||
this.RbMD5.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA1
|
||||
//
|
||||
this.RbSHA1.AutoSize = true;
|
||||
this.RbSHA1.Location = new System.Drawing.Point(72, 32);
|
||||
this.RbSHA1.Name = "RbSHA1";
|
||||
this.RbSHA1.Size = new System.Drawing.Size(47, 16);
|
||||
this.RbSHA1.TabIndex = 25;
|
||||
this.RbSHA1.Text = "SHA1";
|
||||
this.RbSHA1.UseVisualStyleBackColor = true;
|
||||
this.RbSHA1.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA256
|
||||
//
|
||||
this.RbSHA256.AutoSize = true;
|
||||
this.RbSHA256.Location = new System.Drawing.Point(224, 32);
|
||||
this.RbSHA256.Name = "RbSHA256";
|
||||
this.RbSHA256.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA256.TabIndex = 26;
|
||||
this.RbSHA256.Text = "SHA256";
|
||||
this.RbSHA256.UseVisualStyleBackColor = true;
|
||||
this.RbSHA256.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA224
|
||||
//
|
||||
this.RbSHA224.AutoSize = true;
|
||||
this.RbSHA224.Enabled = false;
|
||||
this.RbSHA224.Location = new System.Drawing.Point(144, 32);
|
||||
this.RbSHA224.Name = "RbSHA224";
|
||||
this.RbSHA224.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA224.TabIndex = 27;
|
||||
this.RbSHA224.Text = "SHA224";
|
||||
this.RbSHA224.UseVisualStyleBackColor = true;
|
||||
this.RbSHA224.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA512
|
||||
//
|
||||
this.RbSHA512.AutoSize = true;
|
||||
this.RbSHA512.Location = new System.Drawing.Point(304, 32);
|
||||
this.RbSHA512.Name = "RbSHA512";
|
||||
this.RbSHA512.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA512.TabIndex = 28;
|
||||
this.RbSHA512.Text = "SHA512";
|
||||
this.RbSHA512.UseVisualStyleBackColor = true;
|
||||
this.RbSHA512.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// TxtFromCode
|
||||
//
|
||||
this.TxtFromCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.TxtFromCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.TxtFromCode.DetectUrls = false;
|
||||
this.TxtFromCode.EmptyText = "请填写待转换的内容";
|
||||
this.TxtFromCode.ForeColor = System.Drawing.Color.Black;
|
||||
this.TxtFromCode.Location = new System.Drawing.Point(12, 54);
|
||||
this.TxtFromCode.Name = "TxtFromCode";
|
||||
this.TxtFromCode.OnlyInputText = true;
|
||||
this.TxtFromCode.Size = new System.Drawing.Size(926, 174);
|
||||
this.TxtFromCode.TabIndex = 29;
|
||||
this.TxtFromCode.Text = "";
|
||||
this.TxtFromCode.TextChanged += new System.EventHandler(this.TxtFromCode_TextChanged);
|
||||
this.TxtFromCode.DoubleClick += new System.EventHandler(this.TxtFromCode_DoubleClick_1);
|
||||
//
|
||||
// FrmEncode
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(950, 450);
|
||||
this.Controls.Add(this.TxtFromCode);
|
||||
this.Controls.Add(this.RbSHA512);
|
||||
this.Controls.Add(this.RbSHA224);
|
||||
this.Controls.Add(this.RbSHA256);
|
||||
this.Controls.Add(this.RbSHA1);
|
||||
this.Controls.Add(this.RbMD5);
|
||||
this.Controls.Add(this.RbChsToUTF8);
|
||||
this.Controls.Add(this.RbUTF8ToChs);
|
||||
this.Controls.Add(this.RbChsToUnicode);
|
||||
this.Controls.Add(this.RbUnicodeToChs);
|
||||
this.Controls.Add(this.CbbEncodingCode);
|
||||
this.Controls.Add(this.RbURLDecode);
|
||||
this.Controls.Add(this.RbURLEncode);
|
||||
this.Controls.Add(this.RbBase64Decode);
|
||||
this.Controls.Add(this.RbBase64Encode);
|
||||
this.Controls.Add(this.TxtResultCode);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmEncode";
|
||||
this.TabPageContextMenuStrip = this.menuRight1;
|
||||
this.Text = "编码解码";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEncode));
|
||||
this.RbChsToUnicode = new System.Windows.Forms.RadioButton();
|
||||
this.RbUnicodeToChs = new System.Windows.Forms.RadioButton();
|
||||
this.CbbEncodingCode = new ryControls.RyComboBox();
|
||||
this.RbURLDecode = new System.Windows.Forms.RadioButton();
|
||||
this.RbURLEncode = new System.Windows.Forms.RadioButton();
|
||||
this.RbBase64Decode = new System.Windows.Forms.RadioButton();
|
||||
this.RbBase64Encode = new System.Windows.Forms.RadioButton();
|
||||
this.TxtResultCode = new ryControls.TextBoxEx2();
|
||||
this.menuRight1 = new ryPaiban.Model.MenuRight(this.components);
|
||||
this.RbChsToUTF8 = new System.Windows.Forms.RadioButton();
|
||||
this.RbUTF8ToChs = new System.Windows.Forms.RadioButton();
|
||||
this.RbMD5 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA1 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA256 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA224 = new System.Windows.Forms.RadioButton();
|
||||
this.RbSHA512 = new System.Windows.Forms.RadioButton();
|
||||
this.TxtFromCode = new ryControls.Controls.RichTextBox2();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// RbChsToUnicode
|
||||
//
|
||||
this.RbChsToUnicode.AutoSize = true;
|
||||
this.RbChsToUnicode.Location = new System.Drawing.Point(463, 8);
|
||||
this.RbChsToUnicode.Name = "RbChsToUnicode";
|
||||
this.RbChsToUnicode.Size = new System.Drawing.Size(101, 16);
|
||||
this.RbChsToUnicode.TabIndex = 21;
|
||||
this.RbChsToUnicode.Text = "中文转Unicode";
|
||||
this.RbChsToUnicode.UseVisualStyleBackColor = true;
|
||||
this.RbChsToUnicode.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbUnicodeToChs
|
||||
//
|
||||
this.RbUnicodeToChs.AutoSize = true;
|
||||
this.RbUnicodeToChs.Location = new System.Drawing.Point(356, 8);
|
||||
this.RbUnicodeToChs.Name = "RbUnicodeToChs";
|
||||
this.RbUnicodeToChs.Size = new System.Drawing.Size(101, 16);
|
||||
this.RbUnicodeToChs.TabIndex = 20;
|
||||
this.RbUnicodeToChs.Text = "Unicode转中文";
|
||||
this.RbUnicodeToChs.UseVisualStyleBackColor = true;
|
||||
this.RbUnicodeToChs.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// CbbEncodingCode
|
||||
//
|
||||
this.CbbEncodingCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.CbbEncodingCode.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.CbbEncodingCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.CbbEncodingCode.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.CbbEncodingCode.FormattingEnabled = true;
|
||||
this.CbbEncodingCode.Items.AddRange(new object[] {
|
||||
"UTF8",
|
||||
"GBK",
|
||||
"GB2312",
|
||||
"ASCII",
|
||||
"Unicode"});
|
||||
this.CbbEncodingCode.Location = new System.Drawing.Point(817, 2);
|
||||
this.CbbEncodingCode.Name = "CbbEncodingCode";
|
||||
this.CbbEncodingCode.Size = new System.Drawing.Size(121, 22);
|
||||
this.CbbEncodingCode.TabIndex = 19;
|
||||
this.CbbEncodingCode.SelectedIndexChanged += new System.EventHandler(this.CbbEncodingCode_SelectedIndexChanged);
|
||||
//
|
||||
// RbURLDecode
|
||||
//
|
||||
this.RbURLDecode.AutoSize = true;
|
||||
this.RbURLDecode.Location = new System.Drawing.Point(273, 8);
|
||||
this.RbURLDecode.Name = "RbURLDecode";
|
||||
this.RbURLDecode.Size = new System.Drawing.Size(77, 16);
|
||||
this.RbURLDecode.TabIndex = 18;
|
||||
this.RbURLDecode.Text = "URLDecode";
|
||||
this.RbURLDecode.UseVisualStyleBackColor = true;
|
||||
this.RbURLDecode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbURLEncode
|
||||
//
|
||||
this.RbURLEncode.AutoSize = true;
|
||||
this.RbURLEncode.Location = new System.Drawing.Point(190, 8);
|
||||
this.RbURLEncode.Name = "RbURLEncode";
|
||||
this.RbURLEncode.Size = new System.Drawing.Size(77, 16);
|
||||
this.RbURLEncode.TabIndex = 17;
|
||||
this.RbURLEncode.Text = "URLEncode";
|
||||
this.RbURLEncode.UseVisualStyleBackColor = true;
|
||||
this.RbURLEncode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbBase64Decode
|
||||
//
|
||||
this.RbBase64Decode.AutoSize = true;
|
||||
this.RbBase64Decode.Location = new System.Drawing.Point(101, 8);
|
||||
this.RbBase64Decode.Name = "RbBase64Decode";
|
||||
this.RbBase64Decode.Size = new System.Drawing.Size(83, 16);
|
||||
this.RbBase64Decode.TabIndex = 16;
|
||||
this.RbBase64Decode.Text = "Base64解码";
|
||||
this.RbBase64Decode.UseVisualStyleBackColor = true;
|
||||
this.RbBase64Decode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// RbBase64Encode
|
||||
//
|
||||
this.RbBase64Encode.AutoSize = true;
|
||||
this.RbBase64Encode.Checked = true;
|
||||
this.RbBase64Encode.Location = new System.Drawing.Point(12, 8);
|
||||
this.RbBase64Encode.Name = "RbBase64Encode";
|
||||
this.RbBase64Encode.Size = new System.Drawing.Size(83, 16);
|
||||
this.RbBase64Encode.TabIndex = 15;
|
||||
this.RbBase64Encode.TabStop = true;
|
||||
this.RbBase64Encode.Text = "Base64编码";
|
||||
this.RbBase64Encode.UseVisualStyleBackColor = true;
|
||||
this.RbBase64Encode.CheckedChanged += new System.EventHandler(this.RbBase64Encode_CheckedChanged);
|
||||
//
|
||||
// TxtResultCode
|
||||
//
|
||||
this.TxtResultCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.TxtResultCode.BackColor = System.Drawing.Color.White;
|
||||
this.TxtResultCode.EmptyText = "转换好后的内容";
|
||||
this.TxtResultCode.Location = new System.Drawing.Point(12, 234);
|
||||
this.TxtResultCode.MaxLength = 999999999;
|
||||
this.TxtResultCode.Multiline = true;
|
||||
this.TxtResultCode.Name = "TxtResultCode";
|
||||
this.TxtResultCode.OnlyNumeric = false;
|
||||
this.TxtResultCode.PasswordChar = '\0';
|
||||
this.TxtResultCode.ReadOnly = true;
|
||||
this.TxtResultCode.SelectedText = "";
|
||||
this.TxtResultCode.SelectionLength = 0;
|
||||
this.TxtResultCode.SelectionStart = 0;
|
||||
this.TxtResultCode.Size = new System.Drawing.Size(926, 209);
|
||||
this.TxtResultCode.TabIndex = 14;
|
||||
this.TxtResultCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.TxtResultCode.ToolTip = "";
|
||||
this.TxtResultCode.WordWrap = true;
|
||||
//
|
||||
// menuRight1
|
||||
//
|
||||
this.menuRight1.Name = "menuRight1";
|
||||
this.menuRight1.Size = new System.Drawing.Size(185, 92);
|
||||
this.menuRight1.SourceContent = this;
|
||||
//
|
||||
// RbChsToUTF8
|
||||
//
|
||||
this.RbChsToUTF8.AutoSize = true;
|
||||
this.RbChsToUTF8.Location = new System.Drawing.Point(665, 8);
|
||||
this.RbChsToUTF8.Name = "RbChsToUTF8";
|
||||
this.RbChsToUTF8.Size = new System.Drawing.Size(89, 16);
|
||||
this.RbChsToUTF8.TabIndex = 23;
|
||||
this.RbChsToUTF8.Text = "中文转UTF-8";
|
||||
this.RbChsToUTF8.UseVisualStyleBackColor = true;
|
||||
this.RbChsToUTF8.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbUTF8ToChs
|
||||
//
|
||||
this.RbUTF8ToChs.AutoSize = true;
|
||||
this.RbUTF8ToChs.Location = new System.Drawing.Point(570, 8);
|
||||
this.RbUTF8ToChs.Name = "RbUTF8ToChs";
|
||||
this.RbUTF8ToChs.Size = new System.Drawing.Size(89, 16);
|
||||
this.RbUTF8ToChs.TabIndex = 22;
|
||||
this.RbUTF8ToChs.Text = "UTF-8转中文";
|
||||
this.RbUTF8ToChs.UseVisualStyleBackColor = true;
|
||||
this.RbUTF8ToChs.CheckedChanged += new System.EventHandler(this.RbUnicodeToChs_CheckedChanged);
|
||||
//
|
||||
// RbMD5
|
||||
//
|
||||
this.RbMD5.AutoSize = true;
|
||||
this.RbMD5.Location = new System.Drawing.Point(12, 32);
|
||||
this.RbMD5.Name = "RbMD5";
|
||||
this.RbMD5.Size = new System.Drawing.Size(41, 16);
|
||||
this.RbMD5.TabIndex = 24;
|
||||
this.RbMD5.Text = "MD5";
|
||||
this.RbMD5.UseVisualStyleBackColor = true;
|
||||
this.RbMD5.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA1
|
||||
//
|
||||
this.RbSHA1.AutoSize = true;
|
||||
this.RbSHA1.Location = new System.Drawing.Point(72, 32);
|
||||
this.RbSHA1.Name = "RbSHA1";
|
||||
this.RbSHA1.Size = new System.Drawing.Size(47, 16);
|
||||
this.RbSHA1.TabIndex = 25;
|
||||
this.RbSHA1.Text = "SHA1";
|
||||
this.RbSHA1.UseVisualStyleBackColor = true;
|
||||
this.RbSHA1.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA256
|
||||
//
|
||||
this.RbSHA256.AutoSize = true;
|
||||
this.RbSHA256.Location = new System.Drawing.Point(224, 32);
|
||||
this.RbSHA256.Name = "RbSHA256";
|
||||
this.RbSHA256.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA256.TabIndex = 26;
|
||||
this.RbSHA256.Text = "SHA256";
|
||||
this.RbSHA256.UseVisualStyleBackColor = true;
|
||||
this.RbSHA256.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA224
|
||||
//
|
||||
this.RbSHA224.AutoSize = true;
|
||||
this.RbSHA224.Enabled = false;
|
||||
this.RbSHA224.Location = new System.Drawing.Point(144, 32);
|
||||
this.RbSHA224.Name = "RbSHA224";
|
||||
this.RbSHA224.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA224.TabIndex = 27;
|
||||
this.RbSHA224.Text = "SHA224";
|
||||
this.RbSHA224.UseVisualStyleBackColor = true;
|
||||
this.RbSHA224.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// RbSHA512
|
||||
//
|
||||
this.RbSHA512.AutoSize = true;
|
||||
this.RbSHA512.Location = new System.Drawing.Point(304, 32);
|
||||
this.RbSHA512.Name = "RbSHA512";
|
||||
this.RbSHA512.Size = new System.Drawing.Size(59, 16);
|
||||
this.RbSHA512.TabIndex = 28;
|
||||
this.RbSHA512.Text = "SHA512";
|
||||
this.RbSHA512.UseVisualStyleBackColor = true;
|
||||
this.RbSHA512.CheckedChanged += new System.EventHandler(this.RbNoEncoding_CheckedChanged);
|
||||
//
|
||||
// TxtFromCode
|
||||
//
|
||||
this.TxtFromCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.TxtFromCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.TxtFromCode.DetectUrls = false;
|
||||
this.TxtFromCode.EmptyText = "请填写待转换的内容";
|
||||
this.TxtFromCode.ForeColor = System.Drawing.Color.Black;
|
||||
this.TxtFromCode.Location = new System.Drawing.Point(12, 54);
|
||||
this.TxtFromCode.Name = "TxtFromCode";
|
||||
this.TxtFromCode.OnlyInputText = true;
|
||||
this.TxtFromCode.Size = new System.Drawing.Size(926, 174);
|
||||
this.TxtFromCode.TabIndex = 29;
|
||||
this.TxtFromCode.Text = "";
|
||||
this.TxtFromCode.TextChanged += new System.EventHandler(this.TxtFromCode_TextChanged);
|
||||
this.TxtFromCode.DoubleClick += new System.EventHandler(this.TxtFromCode_DoubleClick_1);
|
||||
//
|
||||
// FrmEncode
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(950, 450);
|
||||
this.Controls.Add(this.TxtFromCode);
|
||||
this.Controls.Add(this.RbSHA512);
|
||||
this.Controls.Add(this.RbSHA224);
|
||||
this.Controls.Add(this.RbSHA256);
|
||||
this.Controls.Add(this.RbSHA1);
|
||||
this.Controls.Add(this.RbMD5);
|
||||
this.Controls.Add(this.RbChsToUTF8);
|
||||
this.Controls.Add(this.RbUTF8ToChs);
|
||||
this.Controls.Add(this.RbChsToUnicode);
|
||||
this.Controls.Add(this.RbUnicodeToChs);
|
||||
this.Controls.Add(this.CbbEncodingCode);
|
||||
this.Controls.Add(this.RbURLDecode);
|
||||
this.Controls.Add(this.RbURLEncode);
|
||||
this.Controls.Add(this.RbBase64Decode);
|
||||
this.Controls.Add(this.RbBase64Encode);
|
||||
this.Controls.Add(this.TxtResultCode);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmEncode";
|
||||
this.TabPageContextMenuStrip = this.menuRight1;
|
||||
this.Text = "编码解码";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
+199
-199
@@ -1,200 +1,200 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="menuRight1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACUWAAAlFgAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAACAAA
|
||||
AAgAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAACAAAAAgAAAAFAAAAAQAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAA+APAH/gBgB/4AAAf+AAAH/wAAD/+AAB//wAA//+AAf//wAP//4AB//8A
|
||||
AP/+AAB//AAAP/gAAB/wAAAP4AGAB+ADwAfgB+AH4A/wB+AH4AfgA8AH4AGAB/AAAA/4AAAf/AAAP/4A
|
||||
AH//AAD//4AB///AA///4Af///////////8=
|
||||
</value>
|
||||
</data>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="menuRight1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACUWAAAlFgAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAACAAA
|
||||
AAgAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAACAAAAAgAAAAFAAAAAQAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAIAAAANAAAAEAAAABAAAAAPAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAGAAAADwAAABAAAAAQAAAADQAA
|
||||
AAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAUAAAAVAAAAGQAA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A/4AAAf/AAAP/4A
|
||||
AH//AAD//4AB///AA///4Af///////////8=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
+370
-4
@@ -48,11 +48,38 @@
|
||||
this.BtnUpdateVer = new ryControls.ButtonEx();
|
||||
this.BtnUpdateDllVer = new ryControls.ButtonEx();
|
||||
this.BtnRepairFolder = new ryControls.ButtonEx();
|
||||
this.ChkTestOn = new System.Windows.Forms.CheckBox();
|
||||
this.RbCompany = new System.Windows.Forms.RadioButton();
|
||||
this.RbPersonal = new System.Windows.Forms.RadioButton();
|
||||
this.RbGeneral = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.chromeTabControl1 = new ryControls.ChromeTabControl();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.TxtProjectVer = new ryControls.TextBoxEx2();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.BtnSave = new ryControls.ButtonEx();
|
||||
this.ChkConfuse = new System.Windows.Forms.CheckBox();
|
||||
this.Txtproglang = new ryControls.TextBoxEx2();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.Txtusqver = new ryControls.TextBoxEx2();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.TxtEngName = new ryControls.TextBoxEx2();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.TxtName = new ryControls.TextBoxEx2();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.BtnSave2 = new ryControls.ButtonEx();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).BeginInit();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.chromeTabControl1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage3.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// BtnCustomMessageBox
|
||||
@@ -107,10 +134,10 @@
|
||||
this.table1.EnableToolTips = true;
|
||||
this.table1.FullRowSelect = true;
|
||||
this.table1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.table1.Location = new System.Drawing.Point(12, 208);
|
||||
this.table1.Location = new System.Drawing.Point(3, 3);
|
||||
this.table1.Name = "table1";
|
||||
this.table1.NoItemsText = "当前列表没有任何项";
|
||||
this.table1.Size = new System.Drawing.Size(905, 296);
|
||||
this.table1.Size = new System.Drawing.Size(894, 371);
|
||||
this.table1.TabIndex = 20;
|
||||
this.table1.TableModel = this.tableModel1;
|
||||
this.table1.Text = "table1";
|
||||
@@ -247,6 +274,53 @@
|
||||
this.BtnRepairFolder.UseVisualStyleBackColor = true;
|
||||
this.BtnRepairFolder.Click += new System.EventHandler(this.BtnRepairFolder_Click);
|
||||
//
|
||||
// ChkTestOn
|
||||
//
|
||||
this.ChkTestOn.AutoSize = true;
|
||||
this.ChkTestOn.Location = new System.Drawing.Point(18, 40);
|
||||
this.ChkTestOn.Name = "ChkTestOn";
|
||||
this.ChkTestOn.Size = new System.Drawing.Size(96, 16);
|
||||
this.ChkTestOn.TabIndex = 13;
|
||||
this.ChkTestOn.Text = "开启测试模式";
|
||||
this.toolTip1.SetToolTip(this.ChkTestOn, "编译条件为:【TEST】\r\n设置当前项目为测试项目,测试项目会增加一些测试信息。\r\n在项目正式发布前,请关闭本功能。\r\n");
|
||||
this.ChkTestOn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// RbCompany
|
||||
//
|
||||
this.RbCompany.AutoSize = true;
|
||||
this.RbCompany.Location = new System.Drawing.Point(6, 3);
|
||||
this.RbCompany.Name = "RbCompany";
|
||||
this.RbCompany.Size = new System.Drawing.Size(71, 16);
|
||||
this.RbCompany.TabIndex = 0;
|
||||
this.RbCompany.TabStop = true;
|
||||
this.RbCompany.Text = "公司项目";
|
||||
this.toolTip1.SetToolTip(this.RbCompany, "公司项目【DY】将隐藏捐助、QQ群等信息。\r\n");
|
||||
this.RbCompany.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// RbPersonal
|
||||
//
|
||||
this.RbPersonal.AutoSize = true;
|
||||
this.RbPersonal.Location = new System.Drawing.Point(104, 3);
|
||||
this.RbPersonal.Name = "RbPersonal";
|
||||
this.RbPersonal.Size = new System.Drawing.Size(71, 16);
|
||||
this.RbPersonal.TabIndex = 1;
|
||||
this.RbPersonal.TabStop = true;
|
||||
this.RbPersonal.Text = "个人项目";
|
||||
this.toolTip1.SetToolTip(this.RbPersonal, "个人项目【PERSONAL】主要是给公司外部的私人测试的项目。\r\n1.会隐藏公司相关信息\r\n2.会隐藏工作室相关信息。");
|
||||
this.RbPersonal.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// RbGeneral
|
||||
//
|
||||
this.RbGeneral.AutoSize = true;
|
||||
this.RbGeneral.Location = new System.Drawing.Point(202, 3);
|
||||
this.RbGeneral.Name = "RbGeneral";
|
||||
this.RbGeneral.Size = new System.Drawing.Size(107, 16);
|
||||
this.RbGeneral.TabIndex = 2;
|
||||
this.RbGeneral.TabStop = true;
|
||||
this.RbGeneral.Text = "工作室通用项目";
|
||||
this.toolTip1.SetToolTip(this.RbGeneral, "工作室项目将采用默认设置,不会植入编译条件。");
|
||||
this.RbGeneral.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
@@ -278,17 +352,279 @@
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "快速代码";
|
||||
//
|
||||
// chromeTabControl1
|
||||
//
|
||||
this.chromeTabControl1.AllowDragTab = false;
|
||||
this.chromeTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chromeTabControl1.BackTabPageImage = null;
|
||||
this.chromeTabControl1.Controls.Add(this.tabPage2);
|
||||
this.chromeTabControl1.Controls.Add(this.tabPage1);
|
||||
this.chromeTabControl1.Controls.Add(this.tabPage3);
|
||||
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
|
||||
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
|
||||
this.chromeTabControl1.Location = new System.Drawing.Point(12, 205);
|
||||
this.chromeTabControl1.Name = "chromeTabControl1";
|
||||
this.chromeTabControl1.SelectedIndex = 0;
|
||||
this.chromeTabControl1.ShowAddButton = false;
|
||||
this.chromeTabControl1.ShowCloseButton = false;
|
||||
this.chromeTabControl1.Size = new System.Drawing.Size(905, 410);
|
||||
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
||||
this.chromeTabControl1.TabContextMenuStrip = null;
|
||||
this.chromeTabControl1.TabIndex = 29;
|
||||
this.chromeTabControl1.TabMaxWidth = 100;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.table1);
|
||||
this.tabPage2.Location = new System.Drawing.Point(1, 29);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(903, 380);
|
||||
this.tabPage2.TabIndex = 0;
|
||||
this.tabPage2.Text = "文件夹";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.TxtProjectVer);
|
||||
this.tabPage1.Controls.Add(this.label5);
|
||||
this.tabPage1.Controls.Add(this.BtnSave);
|
||||
this.tabPage1.Controls.Add(this.ChkConfuse);
|
||||
this.tabPage1.Controls.Add(this.Txtproglang);
|
||||
this.tabPage1.Controls.Add(this.label4);
|
||||
this.tabPage1.Controls.Add(this.Txtusqver);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Controls.Add(this.TxtEngName);
|
||||
this.tabPage1.Controls.Add(this.label2);
|
||||
this.tabPage1.Controls.Add(this.TxtName);
|
||||
this.tabPage1.Controls.Add(this.label1);
|
||||
this.tabPage1.Location = new System.Drawing.Point(1, 29);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(903, 380);
|
||||
this.tabPage1.TabIndex = 1;
|
||||
this.tabPage1.Text = "项目信息";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// TxtProjectVer
|
||||
//
|
||||
this.TxtProjectVer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.TxtProjectVer.EmptyText = "";
|
||||
this.TxtProjectVer.Location = new System.Drawing.Point(72, 61);
|
||||
this.TxtProjectVer.MaxLength = 999999999;
|
||||
this.TxtProjectVer.Multiline = false;
|
||||
this.TxtProjectVer.Name = "TxtProjectVer";
|
||||
this.TxtProjectVer.OnlyNumeric = false;
|
||||
this.TxtProjectVer.PasswordChar = '\0';
|
||||
this.TxtProjectVer.ReadOnly = true;
|
||||
this.TxtProjectVer.SelectedText = "";
|
||||
this.TxtProjectVer.SelectionLength = 0;
|
||||
this.TxtProjectVer.SelectionStart = 0;
|
||||
this.TxtProjectVer.Size = new System.Drawing.Size(193, 28);
|
||||
this.TxtProjectVer.TabIndex = 29;
|
||||
this.TxtProjectVer.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.TxtProjectVer.ToolTip = "";
|
||||
this.TxtProjectVer.WordWrap = true;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(13, 70);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(53, 12);
|
||||
this.label5.TabIndex = 28;
|
||||
this.label5.Text = "项目版本";
|
||||
//
|
||||
// BtnSave
|
||||
//
|
||||
this.BtnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnSave.BaseColor = System.Drawing.Color.Green;
|
||||
this.BtnSave.ColorGradient = true;
|
||||
this.BtnSave.Location = new System.Drawing.Point(798, 340);
|
||||
this.BtnSave.Name = "BtnSave";
|
||||
this.BtnSave.Size = new System.Drawing.Size(99, 34);
|
||||
this.BtnSave.TabIndex = 27;
|
||||
this.BtnSave.Text = "保存配置";
|
||||
this.BtnSave.UseDefSkin = false;
|
||||
this.BtnSave.UseVisualStyleBackColor = true;
|
||||
this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);
|
||||
//
|
||||
// ChkConfuse
|
||||
//
|
||||
this.ChkConfuse.AutoSize = true;
|
||||
this.ChkConfuse.Location = new System.Drawing.Point(15, 40);
|
||||
this.ChkConfuse.Name = "ChkConfuse";
|
||||
this.ChkConfuse.Size = new System.Drawing.Size(144, 16);
|
||||
this.ChkConfuse.TabIndex = 11;
|
||||
this.ChkConfuse.Text = "一键打包时先进行混淆";
|
||||
this.ChkConfuse.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Txtproglang
|
||||
//
|
||||
this.Txtproglang.BackColor = System.Drawing.Color.White;
|
||||
this.Txtproglang.EmptyText = "";
|
||||
this.Txtproglang.Location = new System.Drawing.Point(754, 6);
|
||||
this.Txtproglang.MaxLength = 999999999;
|
||||
this.Txtproglang.Multiline = false;
|
||||
this.Txtproglang.Name = "Txtproglang";
|
||||
this.Txtproglang.OnlyNumeric = false;
|
||||
this.Txtproglang.PasswordChar = '\0';
|
||||
this.Txtproglang.ReadOnly = false;
|
||||
this.Txtproglang.SelectedText = "";
|
||||
this.Txtproglang.SelectionLength = 0;
|
||||
this.Txtproglang.SelectionStart = 0;
|
||||
this.Txtproglang.Size = new System.Drawing.Size(62, 28);
|
||||
this.Txtproglang.TabIndex = 10;
|
||||
this.Txtproglang.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.Txtproglang.ToolTip = "";
|
||||
this.Txtproglang.WordWrap = true;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(695, 15);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(53, 12);
|
||||
this.label4.TabIndex = 9;
|
||||
this.label4.Text = "项目语言";
|
||||
//
|
||||
// Txtusqver
|
||||
//
|
||||
this.Txtusqver.BackColor = System.Drawing.Color.White;
|
||||
this.Txtusqver.EmptyText = "";
|
||||
this.Txtusqver.Location = new System.Drawing.Point(627, 6);
|
||||
this.Txtusqver.MaxLength = 999999999;
|
||||
this.Txtusqver.Multiline = false;
|
||||
this.Txtusqver.Name = "Txtusqver";
|
||||
this.Txtusqver.OnlyNumeric = false;
|
||||
this.Txtusqver.PasswordChar = '\0';
|
||||
this.Txtusqver.ReadOnly = false;
|
||||
this.Txtusqver.SelectedText = "";
|
||||
this.Txtusqver.SelectionLength = 0;
|
||||
this.Txtusqver.SelectionStart = 0;
|
||||
this.Txtusqver.Size = new System.Drawing.Size(62, 28);
|
||||
this.Txtusqver.TabIndex = 8;
|
||||
this.Txtusqver.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.Txtusqver.ToolTip = "";
|
||||
this.Txtusqver.WordWrap = true;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(550, 15);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(71, 12);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "使用USQ版本";
|
||||
//
|
||||
// TxtEngName
|
||||
//
|
||||
this.TxtEngName.BackColor = System.Drawing.Color.White;
|
||||
this.TxtEngName.EmptyText = "";
|
||||
this.TxtEngName.Location = new System.Drawing.Point(354, 6);
|
||||
this.TxtEngName.MaxLength = 999999999;
|
||||
this.TxtEngName.Multiline = false;
|
||||
this.TxtEngName.Name = "TxtEngName";
|
||||
this.TxtEngName.OnlyNumeric = false;
|
||||
this.TxtEngName.PasswordChar = '\0';
|
||||
this.TxtEngName.ReadOnly = false;
|
||||
this.TxtEngName.SelectedText = "";
|
||||
this.TxtEngName.SelectionLength = 0;
|
||||
this.TxtEngName.SelectionStart = 0;
|
||||
this.TxtEngName.Size = new System.Drawing.Size(193, 28);
|
||||
this.TxtEngName.TabIndex = 6;
|
||||
this.TxtEngName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.TxtEngName.ToolTip = "";
|
||||
this.TxtEngName.WordWrap = true;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(271, 15);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(77, 12);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "项目英文名称";
|
||||
//
|
||||
// TxtName
|
||||
//
|
||||
this.TxtName.BackColor = System.Drawing.Color.White;
|
||||
this.TxtName.EmptyText = "";
|
||||
this.TxtName.Location = new System.Drawing.Point(72, 6);
|
||||
this.TxtName.MaxLength = 999999999;
|
||||
this.TxtName.Multiline = false;
|
||||
this.TxtName.Name = "TxtName";
|
||||
this.TxtName.OnlyNumeric = false;
|
||||
this.TxtName.PasswordChar = '\0';
|
||||
this.TxtName.ReadOnly = false;
|
||||
this.TxtName.SelectedText = "";
|
||||
this.TxtName.SelectionLength = 0;
|
||||
this.TxtName.SelectionStart = 0;
|
||||
this.TxtName.Size = new System.Drawing.Size(193, 28);
|
||||
this.TxtName.TabIndex = 4;
|
||||
this.TxtName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.TxtName.ToolTip = "";
|
||||
this.TxtName.WordWrap = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(13, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "项目名称";
|
||||
//
|
||||
// tabPage3
|
||||
//
|
||||
this.tabPage3.Controls.Add(this.BtnSave2);
|
||||
this.tabPage3.Controls.Add(this.panel1);
|
||||
this.tabPage3.Controls.Add(this.ChkTestOn);
|
||||
this.tabPage3.Location = new System.Drawing.Point(1, 29);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage3.Size = new System.Drawing.Size(903, 380);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Text = "C#编译选项";
|
||||
this.tabPage3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// BtnSave2
|
||||
//
|
||||
this.BtnSave2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnSave2.BaseColor = System.Drawing.Color.Green;
|
||||
this.BtnSave2.ColorGradient = true;
|
||||
this.BtnSave2.Location = new System.Drawing.Point(798, 340);
|
||||
this.BtnSave2.Name = "BtnSave2";
|
||||
this.BtnSave2.Size = new System.Drawing.Size(99, 34);
|
||||
this.BtnSave2.TabIndex = 28;
|
||||
this.BtnSave2.Text = "保存配置";
|
||||
this.BtnSave2.UseDefSkin = false;
|
||||
this.BtnSave2.UseVisualStyleBackColor = true;
|
||||
this.BtnSave2.Click += new System.EventHandler(this.BtnSave2_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.RbGeneral);
|
||||
this.panel1.Controls.Add(this.RbPersonal);
|
||||
this.panel1.Controls.Add(this.RbCompany);
|
||||
this.panel1.Location = new System.Drawing.Point(12, 11);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(363, 23);
|
||||
this.panel1.TabIndex = 14;
|
||||
//
|
||||
// FrmProject
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(929, 516);
|
||||
this.ClientSize = new System.Drawing.Size(929, 622);
|
||||
this.CloseButton = false;
|
||||
this.CloseButtonVisible = false;
|
||||
this.Controls.Add(this.chromeTabControl1);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.LblState);
|
||||
this.Controls.Add(this.table1);
|
||||
this.Controls.Add(this.BtnCopyCMD);
|
||||
this.Controls.Add(this.BtnOpenOutput);
|
||||
this.Name = "FrmProject";
|
||||
@@ -297,6 +633,14 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.chromeTabControl1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.tabPage3.ResumeLayout(false);
|
||||
this.tabPage3.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -325,5 +669,27 @@
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private ryControls.ButtonEx BtnUpdateDllVer;
|
||||
private ryControls.ButtonEx BtnRepairFolder;
|
||||
private ryControls.ChromeTabControl chromeTabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private ryControls.TextBoxEx2 Txtusqver;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private ryControls.TextBoxEx2 TxtEngName;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private ryControls.TextBoxEx2 TxtName;
|
||||
private ryControls.TextBoxEx2 Txtproglang;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.CheckBox ChkConfuse;
|
||||
private ryControls.ButtonEx BtnSave;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.CheckBox ChkTestOn;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.RadioButton RbGeneral;
|
||||
private System.Windows.Forms.RadioButton RbPersonal;
|
||||
private System.Windows.Forms.RadioButton RbCompany;
|
||||
private ryControls.ButtonEx BtnSave2;
|
||||
private ryControls.TextBoxEx2 TxtProjectVer;
|
||||
private System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,25 @@ namespace 开发辅助工具.Tools
|
||||
}
|
||||
#endregion
|
||||
LoadPath();
|
||||
#region 读取条件编译信息
|
||||
var DefineConstants = xml.SelectSingleNode(@"d:Project//d:PropertyGroup//d:DefineConstants", xmlnsm);
|
||||
if (DefineConstants != null)
|
||||
{
|
||||
string DefineConstants_Text = ";" + DefineConstants.InnerText + ";";
|
||||
ChkTestOn.Checked = DefineConstants_Text.IndexOfEx(";TEST;") >= 0;
|
||||
if (DefineConstants_Text.IndexOfEx(";DY;") < 0 && DefineConstants_Text.IndexOfEx(";PERSONAL;") < 0)
|
||||
{
|
||||
RbGeneral.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
RbCompany.Checked = DefineConstants_Text.IndexOfEx(";DY;") >= 0;
|
||||
RbPersonal.Checked = DefineConstants_Text.IndexOfEx(";PERSONAL;") >= 0;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
var folder = System.IO.Path.GetDirectoryName(_ProjectPath);
|
||||
TxtProjectVer.Text= Manager.RyProject.GetVerInfo(folder + "\\Properties\\AssemblyInfo.cs").Version;
|
||||
string GetValue(string name)
|
||||
{
|
||||
var node = xml.SelectSingleNode(root + name, xmlnsm);
|
||||
@@ -87,6 +106,12 @@ namespace 开发辅助工具.Tools
|
||||
if (_path!="")
|
||||
{
|
||||
var folder = _path;
|
||||
Ini ini = new Ini(folder + "\\查看项目.ryp");
|
||||
TxtName.Text = ini.ReadIni("project", "name");
|
||||
TxtEngName.Text = ini.ReadIni("project", "engname");
|
||||
Txtusqver.Text = ini.ReadIni("project", "usqver");
|
||||
Txtproglang.Text = ini.ReadIni("project", "proglang");
|
||||
ChkConfuse.Checked = ini.ReadIni("project", "confuse", false);
|
||||
AddPath(true,"Debug输出目录", "Bin\\Debug","包含调试信息的输出目录");
|
||||
AddPath(true, "Release输出目录", "Bin\\Release", "不包含调试信息的输出目录");
|
||||
AddPath(true,"源代码目录", "Source", "含有项目源码");
|
||||
@@ -535,5 +560,66 @@ namespace 开发辅助工具.Tools
|
||||
frm.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
var _path = GetBFFolderPath();
|
||||
if (_path.Length > 0)
|
||||
{
|
||||
var folder = _path;
|
||||
Ini ini = new Ini(folder + "\\查看项目.ryp");
|
||||
ini.WriteIni("project", "name", TxtName.Text);
|
||||
ini.WriteIni("project", "engname", TxtEngName.Text);
|
||||
ini.WriteIni("project", "usqver", Txtusqver.Text);
|
||||
ini.WriteIni("project", "proglang", Txtproglang.Text);
|
||||
ini.WriteIni("project", "confuse", ChkConfuse.Checked);
|
||||
MessageBox.Show("保存成功。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnSave2_Click(object sender, EventArgs e)
|
||||
{
|
||||
System.Xml.XmlDocument xml = new System.Xml.XmlDocument();
|
||||
xml.Load(_ProjectPath);
|
||||
var xmlnsm = new XmlNamespaceManager(xml.NameTable);
|
||||
xmlnsm.AddNamespace("d", xml.DocumentElement.NamespaceURI);
|
||||
#region 读取条件编译信息
|
||||
var DefineConstants = xml.SelectSingleNode(@"d:Project//d:PropertyGroup//d:DefineConstants", xmlnsm);
|
||||
if (DefineConstants != null)
|
||||
{
|
||||
string DefineConstants_Text = ";" + DefineConstants.InnerText + ";";
|
||||
if(ChkTestOn.Checked)
|
||||
{
|
||||
if(DefineConstants_Text.IndexOfEx(";TEST;") < 0) { DefineConstants_Text += "TEST;"; }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DefineConstants_Text.IndexOfEx(";TEST;")>=0) { DefineConstants_Text = DefineConstants_Text.Replace(";TEST;",";"); }
|
||||
}
|
||||
if(RbCompany.Checked)
|
||||
{
|
||||
if (DefineConstants_Text.IndexOfEx(";DY;") < 0) { DefineConstants_Text += "DY;"; }
|
||||
if (DefineConstants_Text.IndexOfEx(";PERSONAL;") >= 0) { DefineConstants_Text = DefineConstants_Text.Replace(";PERSONAL;", ";"); }
|
||||
}
|
||||
else if (RbPersonal.Checked)
|
||||
{
|
||||
if (DefineConstants_Text.IndexOfEx(";PERSONAL;") < 0) { DefineConstants_Text += "PERSONAL;"; }
|
||||
if (DefineConstants_Text.IndexOfEx(";DY;") >= 0) { DefineConstants_Text = DefineConstants_Text.Replace(";DY;", ";"); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DefineConstants_Text.IndexOfEx(";DY;") >= 0) { DefineConstants_Text = DefineConstants_Text.Replace(";DY;", ";"); }
|
||||
if (DefineConstants_Text.IndexOfEx(";PERSONAL;") >= 0) { DefineConstants_Text = DefineConstants_Text.Replace(";PERSONAL;", ";"); }
|
||||
}
|
||||
DefineConstants.InnerText = DefineConstants_Text.Trim(';');
|
||||
xml.Save(_ProjectPath);
|
||||
MessageBox.Show("保存成功。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("保存出错,找不到相关信息。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user