currentSubPanel = SubPanelDictionary[key];\r
currentSubPanel.ShowPanel();\r
});\r
-\r
- // TODO : change this TESTING code!!!\r
-\r
- // Model들 class들(AppShortController, HistoryShortcutController, SettingShortController)의 TVHomeImpl을 호출하여 사용할 수 있습니다.\r
- //IEnumerable<AppShortcutInfo> appList = TVHomeImpl.GetInstance.AppShortcutControllerInstnace.GetList();\r
-\r
- // TODO : SettingShortcuts의 생성은 SettingShortcutController가 SettingShortcutFactory를 사용하여 해야합니다.\r
- // 다른곳에서 직접 SettingShortcutFactory를 사용하는 일은 없어야 합니다.\r
-\r
- //var wifiButton = new Button\r
- //{\r
- // Text = "WiFiSettingShortcut",\r
- //};\r
- //var wifiShortcutInfo = SettingShortcutFactory.Get(SettingID.WiFi);\r
- //if (wifiShortcutInfo == null)\r
- //{\r
- // Debug.Assert(false, "WiFiShortcutInfo is NULL!!!");\r
- //}\r
-\r
- //wifiButton.Clicked += (object sender, EventArgs e) =>\r
- //{\r
- // if (wifiShortcutInfo.DoAction() == false)\r
- // {\r
- // DebuggingUtils.Popup("WiFi actions is failed, " + wifiShortcutInfo.CurrentDescription.Label);\r
- // }\r
-\r
- // Button btn = sender as Button;\r
- // btn.Text = wifiShortcutInfo.CurrentDescription.Label;\r
- //};\r
-\r
- //var btButton = new Button\r
- //{\r
- // Text = "BTSettingShortcut",\r
- //};\r
- //var btShortcutInfo = SettingShortcutFactory.Get(SettingID.BLUETOOTH);\r
- //if (btShortcutInfo == null)\r
- //{\r
- // Debug.Assert(false, "BTShortcutInfo is NULL!!!");\r
- //}\r
-\r
- //btButton.Clicked += (object sender, EventArgs e) =>\r
- //{\r
- // if (btShortcutInfo.DoAction() == false)\r
- // {\r
- // DebuggingUtils.Popup("BT actions is failed, " + btShortcutInfo.CurrentDescription.Label);\r
- // }\r
-\r
- // Button btn = sender as Button;\r
- // btn.Text = btShortcutInfo.CurrentDescription.Label;\r
- //};\r
-\r
- //Testing.Children.Add(new StackLayout\r
- //{\r
- // VerticalOptions = LayoutOptions.Center,\r
- // Children =\r
- // {\r
- // new Label\r
- // {\r
- // HorizontalTextAlignment = TextAlignment.Center,\r
- // Text = "Welcome to Xamarin Forms!"\r
- // },\r
- // wifiButton,\r
- // btButton,\r
- // }\r
- //});\r
}\r
private void OnAppearing(object sender, EventArgs e)\r
{\r