-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathIResourceManager.cs
60 lines (51 loc) · 1.92 KB
/
IResourceManager.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Resources;
using System.Text;
namespace EApp.Core
{
/// <summary>
/// The resource manager to get resource e.g. text, image, stream, object.
/// Provides convenient access to culture-specific resources at run time.
/// </summary>
public interface IResourceManager
{
/// <summary>
/// Returns the value of the specified System.Object resource.
/// </summary>
object GetObject(string name);
/// <summary>
/// Gets the value of the System.Object resource localized for the specified culture.
/// </summary>
object GetObject(string name, CultureInfo culture);
/// <summary>
/// Returns an System.IO.UnmanagedMemoryStream object from the specified resource
/// </summary>
UnmanagedMemoryStream GetStream(string name);
/// <summary>
/// Returns an System.IO.UnmanagedMemoryStream object from the specified resource using the specified culture.
/// </summary>
UnmanagedMemoryStream GetStream(string name, CultureInfo culture);
/// <summary>
/// Returns the value of the specified System.Drawing.Imaging resource.
/// </summary>
Image GetImage(string name);
/// <summary>
/// Gets the value of the System.Drawing.Imaging resource localized for the specified
/// culture.
/// </summary>
Image GetImage(string name, CultureInfo culture);
/// <summary>
/// Returns the value of the specified System.String resource.
/// </summary>
string GetString(string name);
/// <summary>
/// Gets the value of the System.String resource localized for the specified
/// culture.
/// </summary>
string GetString(string name, CultureInfo culture);
}
}