private void SaveButton_Click(object sender, EventArgs e) { using (BinaryWriter writer = new BinaryWriter(File.Open(cityAreasFile.FullName, FileMode.Create))) { areas.WriteToFile(writer); } }
private void Save() { using (BinaryWriter writer = new BinaryWriter(File.Open(cityAreasFile.FullName, FileMode.Create))) { areas.WriteToFile(writer); } Text = Language.GetString("$CITY_AREA_EDITOR_TITLE"); bIsFileEdited = false; }