示例#1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var wnd = new MainWindow();

            wnd.Show();

            if (e.Args.Length == 1)
            {
                wnd.StartWatching(e.Args[0]);
            }
            else
            {
                if (IsValidGitRepository(Environment.CurrentDirectory))
                {
                    wnd.StartWatching(Environment.CurrentDirectory);
                }
            }
        }