Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }