public controllerDelegateContainer(controllerShowError iErrorDisplayer, controllerClose iProgramCloser = null) { pErrorDisplayer = iErrorDisplayer; if (iProgramCloser == null) { pProgramCloser = new controllerClose(emptyControllerCloseFunc); return; } pProgramCloser = iProgramCloser; }
/* ************************************************************************************************************************ *************************************************************************************************************************/ public DirectoryHandler(String dirPath, controllerShowError DisplayError) { contDisplayError = DisplayError; pContents = new List <ioObject>(); pDirectoryPath = dirPath; retrieveContents(); try { parent = Directory.GetParent(pDirectoryPath); } catch { contDisplayError("unable to retrieve parent of folder " + dirPath); } }
/* ************************************************************************************************************************ *************************************************************************************************************************/ public DirectoryHandler(String dirPath, controllerShowError DisplayError) { contDisplayError = DisplayError; pContents = new List<ioObject>(); pDirectoryPath = dirPath; retrieveContents(); try { parent = Directory.GetParent(pDirectoryPath); } catch { contDisplayError("unable to retrieve parent of folder " + dirPath); } }
public void retrieveDelegates(out controllerShowError iErrorDisplayer, out controllerClose iProgramCloser) { iErrorDisplayer = pErrorDisplayer; iProgramCloser = pProgramCloser; }