void 提取字段名ToolStripMenuItemClick(object sender, EventArgs e) { Helpers.OnClipboardString((v) => { textBox1.Text = AndroidExtensions.ExtractJavaField(v); return(null); }); }
void CompileStripButtonClick(object sender, EventArgs e) { Helpers.OnClipboardFileSystem((v) => { if (File.Exists(v)) { Clipboard.SetText(AndroidExtensions.GenerateKotilinCompileCommand(v)); } }); }
void 排序indexhtmlToolStripMenuItemClick(object sender, EventArgs e) { Helpers.OnClipboardFileSystem((path) => { if (path.IsDirectory()) { var files = Directory.GetFiles(path, "*.html", SearchOption.AllDirectories).Where(i => i.EndsWith("index.html")); foreach (var element in files) { element.WriteAllText(AndroidExtensions.FormatJetBrainExportHtml(element)); } } }); }