private static string getPathString(string fPath, OS os, Folder f) { var navigationPathAtPath = Programs.getNavigationPathAtPath(fPath, os, f); var str = ""; for (var index = 0; index < navigationPathAtPath.Count; ++index) { str = str + "#" + navigationPathAtPath[index]; } return(str); }
private static string getPathString(string fPath, OS os, Folder f) { List <int> navigationPathAtPath = Programs.getNavigationPathAtPath(fPath, os, f); string str = ""; for (int index = 0; index < navigationPathAtPath.Count; ++index) { str = str + "#" + (object)navigationPathAtPath[index]; } return(str); }
public virtual void showSourcePressed() { var str = ""; var count = Programs.getNavigationPathAtPath("", os, root).Count; for (var index = 0; index < count; ++index) { str += "../"; } os.runCommand("cd " + (str + "web")); os.delayer.Post(ActionDelayer.Wait(0.1), () => os.runCommand("cat " + lastLoadedFile.name)); }
public virtual void showSourcePressed() { string str = ""; int count = Programs.getNavigationPathAtPath("", this.os, this.root).Count; for (int index = 0; index < count; ++index) { str += "../"; } this.os.runCommand("cd " + (str + "web")); if (this.lastLoadedFile == null) { return; } this.os.delayer.Post(ActionDelayer.Wait(0.1), (Action)(() => this.os.runCommand("cat " + this.lastLoadedFile.name))); }