blob: a762e12e49d51aa368b0e6811ed6f871d2affef7 (
plain)
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
|
using System;
namespace Xamarin.PropertyEditing.Themes
{
public abstract class BaseThemeManager
{
PropertyEditorTheme theme;
public BaseThemeManager ()
{
NotifyThemeChanged ();
}
protected abstract void SetTheme ();
public PropertyEditorTheme Theme
{
get {
return theme;
}
set {
if (theme != value) {
theme = value;
NotifyThemeChanged ();
}
}
}
void NotifyThemeChanged ()
{
SetTheme ();
if (ThemeChanged != null)
ThemeChanged (null, EventArgs.Empty);
}
public event EventHandler ThemeChanged;
}
}
|