public void Dispose() { var iniFile = new IniFile(_cfgFile); iniFile["SCREENSHOT"].Set("FORMAT", _originalFormat); iniFile.Save(); } }