static SecuritySettings() { if (File.Exists(SettingFileName)) { _settings = SchemaFile.LoadSchema <SecuritySettingSchema>(SettingFileName); } if (_settings == null) { _settings = new SecuritySettingSchema(); _settings.LoginPageUrl = ""; _settings.ConnectionName = ""; _settings.AdministratorObjects = new List <string>(); _settings.AdministratorObjects.Add("/studio"); _settings.AdministratorObjects.Add("DataExplore"); SchemaFile.SaveSchema <SecuritySettingSchema>(_settings, SettingFileName); } }
public static void RegistDefaultOperator(string regFile) { _operatorRegList = new OperatorRegList(); RegistOperator("||", typeof(Or), 1); RegistOperator("&&", typeof(And), 1); RegistOperator(">", typeof(GreaterThan), 2); RegistOperator("<", typeof(LessThan), 2); RegistOperator("<=", typeof(GE), 2); RegistOperator(">=", typeof(LE), 2); RegistOperator("!=", typeof(NotEqualTo), 2); RegistOperator("==", typeof(EqualTo), 2); RegistOperator("=", typeof(EqualTo), 2); RegistOperator("+", typeof(Addition), 3); RegistOperator("-", typeof(Subtraction), 3); RegistOperator("*", typeof(Multiplication), 4); RegistOperator("/", typeof(Division), 4); SchemaFile.SaveSchema <OperatorRegList>(_operatorRegList, regFile); }