Exemple #1
0
 void 提取字段名ToolStripMenuItemClick(object sender, EventArgs e)
 {
     Helpers.OnClipboardString((v) => {
         textBox1.Text = AndroidExtensions.ExtractJavaField(v);
         return(null);
     });
 }
Exemple #2
0
 void CompileStripButtonClick(object sender, EventArgs e)
 {
     Helpers.OnClipboardFileSystem((v) => {
         if (File.Exists(v))
         {
             Clipboard.SetText(AndroidExtensions.GenerateKotilinCompileCommand(v));
         }
     });
 }
Exemple #3
0
 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));
             }
         }
     });
 }