private void FormMain_FormClosed(object sender, FormClosedEventArgs e) { HashIni ini = Profile.ReadAll(IniPath); AmbLib.SaveFormXYWH(this, SECTION_LOCATION, ini); AmbLib.SaveListViewColumnWidth(listMain, SECTION_OPTION, KEY_COLUMN_WIDTH, ini); AmbLib.SaveComboBox(cmbApplication, SECTION_APP_COMBO, MAX_COMBO_SAVE, ini); AmbLib.SaveComboBox(cmbArguments, SECTION_ARG_COMBO, MAX_COMBO_SAVE, ini); if (!Profile.WriteAll(ini, IniPath)) { CppUtils.Alert("Failed to save ini"); } }