mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Mouse select support & Code refactoring
This commit is contained in:
@@ -13,8 +13,22 @@ namespace WinAlfred.Helper
|
||||
private int hasAddedCount = 0;
|
||||
private Dictionary<string, int> dict = new Dictionary<string, int>();
|
||||
private string filePath = Directory.GetCurrentDirectory() + "\\selectedRecords.dat";
|
||||
private static readonly SelectedRecords instance = new SelectedRecords();
|
||||
|
||||
public void LoadSelectedRecords()
|
||||
private SelectedRecords()
|
||||
{
|
||||
LoadSelectedRecords();
|
||||
}
|
||||
|
||||
public static SelectedRecords Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadSelectedRecords()
|
||||
{
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user