This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var topPanel = "Util - View O2.Platform.Scripts file length".popupWindow(1000,500).insert_LogViewer(); | |
//var topPanel = panel.add_Panel(true); | |
var targetFolder = PublicDI.config.LocalScriptsFolder;; | |
List<string> allFiles = null; | |
var treeView = topPanel.add_TreeView(); | |
var slider = treeView.insert_Above(20) | |
.add_Slider(); | |
var label = slider.insert_Right(180).add_Label("",5).font_bold().text_Center().autoSize(); | |
var textBox = topPanel.insert_Above(20).add_Label("Target Folder",3).append_TextBox(targetFolder).align_Right(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _text = "this text happens before<paypal>aaa</paypal>this text happens after"; | |
Func<string, string,string, string> subString_InBetween = | |
(text, before, after) | |
=>{ | |
var splittedText = text.subString_After(before).split(after) ; | |
if (splittedText.size() ==2) | |
return splittedText.first(); | |
return ""; | |
}; |