-
Notifications
You must be signed in to change notification settings - Fork 3
/
Scene1.cs
60 lines (52 loc) · 1.61 KB
/
Scene1.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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tizen.Applications;
using Tizen.NUI;
using Tizen.Peripheral.Gpio;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
namespace jjangchin_kiosk
{
public class Scene1 : NUIApplication
{
private BlackScreen mainPage;
override protected void OnCreate()
{
base.OnCreate();
// Program.globalData["hhh"];
// NOTE To use theme.xaml, uncomment below line.
// ThemeManager.ApplyTheme(new Theme(Tizen.Applications.Application.Current.DirectoryInfo.Resource + "theme/theme.xaml"));
mainPage = new BlackScreen();
Window.Instance.Add(mainPage);
Window.Instance.Add(new Scene1Page());
// GetDefaultWindow().KeyEvent += OnScene1KeyEvent;
}
private void OnScene1KeyEvent(object sender, Window.KeyEventArgs e)
{
if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))
{
Exit();
}
}
override protected void OnPause()
{
base.OnPause();
}
override protected void OnResume()
{
base.OnResume();
}
override protected void OnTerminate()
{
mainPage.Stop();
base.OnTerminate();
}
override protected void OnAppControlReceived(AppControlReceivedEventArgs e)
{
base.OnAppControlReceived(e);
}
}
}