Ejemplo n.º 1
0
        internal void SaveUserSettings(Settings settings)
        {
            settings.UserDeviceManufacturers = SaveToStringCollection(settings.UserDeviceManufacturers, mManufacturer, 5);
            settings.UserDeviceDescriptions = SaveToStringCollection(settings.UserDeviceDescriptions, mDeviceDescription, 5);
            settings.UserDeviceInterfaceGUIDs = SaveToStringCollection(settings.UserDeviceInterfaceGUIDs, mDeviceInterfaceGuid, 5);
            settings.UserSaveDirectorys = SaveToStringCollection(settings.UserSaveDirectorys, mSaveDirectory, 5);

            settings.Last_CreateDriverDirectory = mCreateDriverDirectory;
        }
Ejemplo n.º 2
0
        internal void FillUserSettings(Settings settings)
        {
            mUserDeviceManufacturers = settings.UserDeviceManufacturers;
            mUserDeviceInterfaceGUIDs = settings.UserDeviceInterfaceGUIDs;
            mUserDeviceDescriptions = settings.UserDeviceDescriptions;
            mUserSaveDirectorys = settings.UserSaveDirectorys;

            mCreateDriverDirectory = settings.Last_CreateDriverDirectory;

            if ((mUserSaveDirectorys != null) && mUserSaveDirectorys.Count > 0)
                mSaveDirectory = mUserSaveDirectorys[mUserSaveDirectorys.Count - 1];
        }