public static void CreateNewConfigFile() { SmanOraConfig OraCfg = new SmanOraConfig(); string Alias, UserName, Password, DataBase; GetSmanOraCfgParameters(out Alias, out UserName, out Password, out DataBase); OraCfg.Add(Alias, UserName, Password, DataBase); SmanOraConfig.Serialize(SmanConstants.configFileName, OraCfg); }
public static void AddNewConfigFileEntity() { SmanOraConfig OraCfg = new SmanOraConfig(); try { OraCfg = SmanOraConfig.Deserialize(SmanConstants.configFileName); } catch { SmanMessage.RaiseError(SmanConstants.msgConfigFileError); } string Alias, UserName, Password, DataBase; GetSmanOraCfgParameters(out Alias, out UserName, out Password, out DataBase); OraCfg.Add(Alias, UserName, Password, DataBase); SmanOraConfig.Serialize(SmanConstants.configFileName, OraCfg); }