Menu

[38707f]: / ClassGlobals.cs  Maximize  Restore  History

Download this file

33 lines (29 with data), 940 Bytes

 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
using System.Collections.Generic;
using System.Drawing;
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);
}
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.