3 using Tizen.NUI.BaseComponents;
4 using Tizen.NUI.Components;
6 namespace SystemSettingsUnitTest
8 class Program : NUIApplication
10 static public Progress testProgress;
11 static public TextLabel text;
12 protected override void OnCreate()
16 SystemSettingsTests.TestAllAsync();
20 public static void PrintOkFuncName(String str_in)
22 String func_name = str_in.ToString();
23 String[] parse_func = func_name.Split(' ');
24 Console.WriteLine(parse_func[1] + " >>>>>> ok");
28 public void DisplayString()
30 Window.Instance.KeyEvent += OnKeyEvent;
32 testProgress = new Progress();
33 testProgress.MaxValue = 100;
34 testProgress.MinValue = 0;
35 testProgress.CurrentValue = 0;
36 testProgress.TrackColor = Color.Black;
37 testProgress.ProgressColor = Color.Green;
38 testProgress.Position2D = new Position2D(30, 100);
39 testProgress.Size2D = new Size2D(300, 5);
41 text = new TextLabel("SystemSettings Unit Test");
42 text.HorizontalAlignment = HorizontalAlignment.Center;
43 text.VerticalAlignment = VerticalAlignment.Center;
44 text.TextColor = Color.Blue;
45 text.PointSize = 12.0f;
46 text.HeightResizePolicy = ResizePolicyType.FillToParent;
47 text.WidthResizePolicy = ResizePolicyType.FillToParent;
48 Window.Instance.GetDefaultLayer().Add(text);
49 Window.Instance.GetDefaultLayer().Add(testProgress);
53 public void OnKeyEvent(object sender, Window.KeyEventArgs e)
55 if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))
61 static void Main(string[] args)
64 var app = new Program();