forked from yhuse/SunnyUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFAvatar.cs
44 lines (39 loc) · 1.08 KB
/
FAvatar.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
namespace Sunny.UI.Demo
{
public partial class FAvatar : UIPage
{
public FAvatar()
{
InitializeComponent();
}
public override void Init()
{
base.Init();
uiGifAvatar1.Active = true;
}
public override void Final()
{
base.Final();
uiGifAvatar1.Active = false;
}
private void uiAvatar4_Click(object sender, System.EventArgs e)
{
uiContextMenuStrip1.Show(uiAvatar4, 0, uiAvatar4.Height);
}
private void FAvatar_ReceiveParams(object sender, UIPageParamsArgs e)
{
if (e.SourcePage != null && e.SourcePage.PageIndex == 1002)
{
//来自页面1002的传值
uiLabel1.Text = e.Value.ToString();
e.Handled = true;
}
if (e.SourcePage == null)
{
//来自页面框架的传值
uiLabel4.Text = e.Value.ToString();
e.Handled = true;
}
}
}
}