public HotKeyConfig(string storage, ref List <KeyData> _HotKeys, MainFormBase.GetAValidDatabase _GetBaseDatabase) { HotKeys = _HotKeys; if (Constants.BLANK == storage) { throw new Exception("must specify a nonBlank database name to store the HotKeyModifications inside of."); } GetBaseDatabase = _GetBaseDatabase; DatabaseName = storage; }
public AddIns(string path, string storage, MainFormBase.GetAValidDatabase _GetBaseDatabase) { if (Constants.BLANK == path || Constants.BLANK == storage) { throw new Exception("must define a vaild path to search for AddIns and a storage location where their activte status is stored"); } GetBaseDatabase = _GetBaseDatabase; dataPath = path; DatabaseName = storage; if (Directory.Exists (dataPath) == false) { Directory.CreateDirectory (dataPath); } }
public AddIns(string path, string storage, MainFormBase.GetAValidDatabase _GetBaseDatabase) { if (Constants.BLANK == path || Constants.BLANK == storage) { throw new Exception("must define a vaild path to search for AddIns and a storage location where their activte status is stored"); } GetBaseDatabase = _GetBaseDatabase; dataPath = path; DatabaseName = storage; if (Directory.Exists(dataPath) == false) { Directory.CreateDirectory(dataPath); } }