private void GetConfiguration() { string path = string.Format("{0}\\License.ini", Application.StartupPath); if (System.IO.File.Exists(path) == false) { return; } VIZCore3D.NET.Utility.IniFile ini = new Utility.IniFile(); ini.Load(path); if (ini.ContainsSection("License") == false) { return; } VIZCore3D.NET.Utility.IniSection section = new Utility.IniSection(); if (ini.TryGetSection("License", out section) == false) { return; } txtFile.Text = section["File"].ToString(); txtIp.Text = section["IP"].ToString(); txtPort.Text = section["PORT"].ToString(); }