Beispiel #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();
        }