forked from gdevic/GitForce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClassGlobals.cs
35 lines (32 loc) · 992 Bytes
/
ClassGlobals.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace GitForce
{
/// <summary>
/// Class containing global variables used by several parts of the program.
/// </summary>
static class ClassGlobals
{
/// <summary>
/// Application cached list of available fixed-width fonts
/// </summary>
public static readonly List<FontFamily> Fonts = new List<FontFamily>();
/// <summary>
/// List of temporary files that need to be deleted on app exit
/// </summary>
public static readonly List<string> TempFiles = new List<string>();
/// <summary>
/// The function that actually removes all temp files from the list
/// </summary>
public static void RemoveTempFiles()
{
foreach (var tempFile in TempFiles)
{
ClassUtils.DeleteFile(tempFile);
}
}
}
}