Esempio n. 1
0
 private void SaveButton_Click(object sender, EventArgs e)
 {
     using (BinaryWriter writer = new BinaryWriter(File.Open(cityAreasFile.FullName, FileMode.Create)))
     {
         areas.WriteToFile(writer);
     }
 }
Esempio n. 2
0
        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;
        }