private void PrepareIniFileName() { IniFileName = Path.GetFileName(Application.ExecutablePath); FileInfo fi = new FileInfo(IniFileName); fi = new FileInfo(fi.FullName); IniFileName = fi.Name; IniFileName = IniFileName.Substring(0, IniFileName.Length - ".exe".Length) + ".ini"; iniFile = new IniFile(Application.StartupPath + @"\" + IniFileName); }
private void PrepareIniFileName() { IniFileName = Path.GetFileName(System.Windows.Forms.Application.ExecutablePath); IniFileName = IniFileName.Substring(0, IniFileName.Length - ".exe".Length) + ".ini"; iniFile = new IniFile(System.Windows.Forms.Application.StartupPath + @"\" + IniFileName); }