-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIElementStatic.cs
34 lines (26 loc) · 1.01 KB
/
UIElementStatic.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
using System;
namespace WinForMono {
public abstract partial class UIElement : WinformWrapper {
static UIElement() {
default_parent = WinformWrapper.NULL;
}
//-------------------------------------------------------------------------------------------
public static void bind_parent(WinformWrapper binding) {
switch (default_parent.Equals(WinformWrapper.NULL) || binding == null) {
case true:
switch (binding == null) {
case true:
default_parent = WinformWrapper.NULL;
break;
case false:
default_parent = binding;
break;
}
break;
default:
throw new Exception("Attempt to overwrite non-null default parent.");
}
}
private static WinformWrapper default_parent;
}
}