/// <summary> /// 文件重编码示例入口 /// </summary> public static void Main(String[] args) { if (args.Length == 0) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ReCode_Form()); } else { String[] files = DragDropTool.GetSubFiles(args); // 载入文件信息 String[] Endwith = new String[] { ".java", ".cs", ".txt", ".xml" }; RenameTool.ReName(files, Endwith); // 重命名 RecodeTool.ReCode(files, Encoding.UTF8, Endwith); // 重编码所有文件 } }
private void textBox_DragDrop(object sender, DragEventArgs e) { files = DragDropTool.Form_DragDrop(sender, e); }
private void textBox_DragEnter(object sender, DragEventArgs e) { DragDropTool.Form_DragEnter(sender, e); }