Changeset 14 for Common/RecentFiles.cs


Ignore:
Timestamp:
Aug 2, 2022, 11:46:25 AM (2 years ago)
Author:
chronos
Message:
  • Modified: Various improvements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/RecentFiles.cs

    r13 r14  
    11using System;
    22using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
    5 using System.Threading.Tasks;
    63using System.Windows.Forms;
    74using Microsoft.Win32;
     
    4239        }   
    4340
    44         public void LoadFromRegistry(string RegSubKey)
     41        public void LoadFromRegistry(string regSubKey)
    4542        {
    46             RegistryKey regKey = Application.UserAppDataRegistry.OpenSubKey(RegSubKey);
    47             if (regKey == null) regKey = Application.UserAppDataRegistry.CreateSubKey(RegSubKey);
     43            RegistryKey regKey = Application.UserAppDataRegistry.OpenSubKey(regSubKey);
     44            if (regKey == null) regKey = Application.UserAppDataRegistry.CreateSubKey(regSubKey);
    4845
    4946            int count = (int)regKey.GetValue("Count", 0);
     
    5653        }
    5754
    58         public void SaveToRegistry(string RegSubKey)
     55        public void SaveToRegistry(string regSubKey)
    5956        {
    60             RegistryKey regKey = Application.UserAppDataRegistry.OpenSubKey(RegSubKey, true);
    61             if (regKey == null) regKey = Application.UserAppDataRegistry.CreateSubKey(RegSubKey);
     57            RegistryKey regKey = Application.UserAppDataRegistry.OpenSubKey(regSubKey, true);
     58            if (regKey == null) regKey = Application.UserAppDataRegistry.CreateSubKey(regSubKey);
    6259
    6360            regKey.SetValue("Count", Items.Count);
Note: See TracChangeset for help on using the changeset viewer.