public bool IsRootedDirectoryPath(string path)
 {
     return(FormInit.IsRootedDirectoryPath(path));
 }
Beispiel #2
0
        public bool StartInitializeDialog(IWin32Window owner, string dir, GitModuleChangedEventHandler GitModuleChanged)
        {
            Func<bool> action = () =>
            {
                if (dir == null)
                    dir = Module.IsValidGitWorkingDir() ? Module.WorkingDir : string.Empty;
                using (var frm = new FormInit(dir, GitModuleChanged)) frm.ShowDialog(owner);
                return true;
            };

            return DoActionOnRepo(owner, false, true, PreInitialize, PostInitialize, action);
        }
 public TestAccessor(FormInit form)
 {
     _form = form;
 }