public IniFile ReadIni() { IniFile ini = new Ini.IniFile("sys.ini"); if (ini.Exists()) { ini.Load(); } else { IniSection section = new IniSection(); section.Add("startdate", "1-05-2011"); section.Add("enddate", "15-05-2011"); ini.Add("DATES", section); section = new IniSection(); section.Add("email_user", "*****@*****.**"); section.Add("email_password", "Paz.planner01"); section.Add("email_from", "*****@*****.**"); section.Add("email_host", "smtp.gmail.com"); section.Add("email_port", "587"); section.Add("email_onderwerp", "Afstudeerzitting(en)"); ini.Add("EMAILSETTINGS", section); section = new IniSection(); section.Add("this.DB_host", "student.aii.avans.nl"); section.Add("this.DB_username", "MI4Ie"); section.Add("this.DB_password", "4DRcUrzV"); section.Add("this.DB_database", "MI4Ie_this.DB"); ini.Add("DATABASESETTINGS", section); ini.Save(); } return(ini); }
public IniFile ReadIni() { IniFile ini = new Ini.IniFile("sys.ini"); if (ini.Exists()) { ini.Load(); } else { IniSection section = new IniSection(); section.Add("startdate", "1-05-2011"); section.Add("enddate", "15-05-2011"); ini.Add("DATES", section); section = new IniSection(); section.Add("email_user", "*****@*****.**"); section.Add("email_password", "Paz.planner01"); section.Add("email_from", "*****@*****.**"); section.Add("email_host", "smtp.gmail.com"); section.Add("email_port", "587"); section.Add("email_onderwerp", "Afstudeerzitting(en)"); ini.Add("EMAILSETTINGS", section); section = new IniSection(); section.Add("this.DB_host", "student.aii.avans.nl"); section.Add("this.DB_username", "MI4Ie"); section.Add("this.DB_password", "4DRcUrzV"); section.Add("this.DB_database", "MI4Ie_this.DB"); ini.Add("DATABASESETTINGS", section); ini.Save(); } return ini; }