3 using Tizen.NUI.BaseComponents;
4 using System.Threading.Tasks;
9 namespace SystemSettingsUnitTest
11 class Program : NUIApplication
13 protected override void OnCreate()
16 SystemSettingsTests.TestAllAsync();
21 public static void PrintOkFuncName(String str_in)
23 String func_name = str_in.ToString();
24 String[] parse_func = func_name.Split(' ');
25 Console.WriteLine(parse_func[1] + " >>>>>> ok");
29 public void DisplayString()
31 Window.Instance.KeyEvent += OnKeyEvent;
32 TextLabel text = new TextLabel("SystemSettings Unit Test");
33 //text.HorizontalAlignment = HorizontalAlignment.Center;
34 //text.VerticalAlignment = VerticalAlignment.Center;
35 //text.TextColor = Color.Blue;
36 //text.PointSize = 12.0f;
37 //text.HeightResizePolicy = ResizePolicyType.FillToParent;
38 //text.WidthResizePolicy = ResizePolicyType.FillToParent;
39 Window.Instance.GetDefaultLayer().Add(text);
43 public void OnKeyEvent(object sender, Window.KeyEventArgs e)
45 if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))
51 static void Main(string[] args)
54 var app = new Program();