Пример #1
0
        public void SaveDisplayPreferences(DisplayPreferences prefs)
        {
            string file = GetDisplayPrefsFile(prefs.Id);

            using (Stream fs = WriteExclusiveFileStream(file)) {
                prefs.WriteToStream(new BinaryWriter(fs));
            }
        }
Пример #2
0
        public void SaveDisplayPreferences(DisplayPreferences prefs)
        {
            string file = GetDisplayPrefsFile(prefs.Id);

            using (Stream fs = WriteExclusiveFileStream(file)) {
                prefs.WriteToStream(new BinaryWriter(fs));
            }
            //also save the thumb size in a way we can access outside of MC
            thumbSizes[prefs.Id] = new ThumbSize(prefs.ThumbConstraint.Value.Width, prefs.ThumbConstraint.Value.Height);
        }
 public void SaveDisplayPreferences(DisplayPreferences prefs) {
     string file = GetDisplayPrefsFile(prefs.Id);
     using (Stream fs = WriteExclusiveFileStream(file)) {
         prefs.WriteToStream(new BinaryWriter(fs));
     }
     //also save the thumb size in a way we can access outside of MC
     thumbSizes[prefs.Id] = new ThumbSize(prefs.ThumbConstraint.Value.Width, prefs.ThumbConstraint.Value.Height);
 }
Пример #4
0
 public void SaveDisplayPreferences(DisplayPreferences prefs)
 {
     string file = GetDisplayPrefsFile(prefs.Id);
     using (Stream fs = WriteExclusiveFileStream(file)) {
         prefs.WriteToStream(new BinaryWriter(fs));
     }
 }