Example #1
0
        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();
        }
Example #2
0
        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;
 }
Example #4
0
 public BaseExtension(ScfeApp app)
 {
     _app = app;
 }
Example #5
0
 public ComExtension(ScfeApp app)
 {
     _app = app;
 }
Example #6
0
 public ScfeTable(ScfeApp app)
 {
     _app = app;
 }