public static void TestApp(string startingPath) { var colFile = File.UserHome.GetChildMaybe(".SCFE")?.GetChildMaybe("columns.txt"); string[] columns = null; if (colFile != null && colFile.Exists()) { using (StreamReader sr = new StreamReader(colFile.FullPath)) { var colStr = sr.ReadLine(); if (colStr != null) { columns = colStr.Split(','); } } } if (columns == null) { columns = new[] { "name", "git", "size", "date" } } ; var f = new File(startingPath); var app = new ScfeApp(f.Exists() ? f : null, columns); app.Show(); }
public GitExtension(ScfeApp app) { _app = app; _app.OnPreRefresh += (sender, args) => RefreshRepository(null); _app.OnFileChanged += (sender, args) => { if (!args.Files.Any(f => f.Exists())) { return; } RefreshRepository(null); RefreshRepository(_app.CurrentDir); }; }
public FileWatchExtension(ScfeApp app) { _app = app; _app.OnFolderViewChanged += OnAppFolderViewChanged; }
public BaseExtension(ScfeApp app) { _app = app; }
public ComExtension(ScfeApp app) { _app = app; }
public ScfeTable(ScfeApp app) { _app = app; }