Ejemplo n.º 1
0
        public void Save()
        {
            var changed = _service.SaveBool(nameof(AutoSearchPaths), Category, AutoSearchPaths);

            changed |= _service.SaveString(nameof(DiagnosticMode), Category, DiagnosticMode);
            changed |= _service.SaveString(nameof(LogLevel), Category, LogLevel);
            changed |= _service.SaveString(nameof(StubPath), Category, StubPath);
            changed |= _service.SaveString(nameof(TypeCheckingMode), Category, TypeCheckingMode);
            changed |= _service.SaveMultilineString(nameof(TypeshedPaths), Category, TypeshedPaths);
            changed |= _service.SaveMultilineString(nameof(ExtraPaths), Category, ExtraPaths);
            changed |= _service.SaveBool(nameof(UseLibraryCodeForTypes), Category, UseLibraryCodeForTypes);
            if (changed)
            {
                Changed?.Invoke(this, EventArgs.Empty);
            }
        }