From: gs86.lee Date: Thu, 23 Feb 2017 07:51:24 +0000 (+0900) Subject: Remove unused code in ViewModel X-Git-Tag: submit/tizen/20170808.015446~242 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be2d1f904fb7eab7e5225bdbdc8400be18d1925a;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Remove unused code in ViewModel Change-Id: Id772d5a4a53e065e5d95cd9056fe1252f0a3c5b7 --- diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs index 0ac00cf..53b7682 100644 --- a/TVHome/TVHome/Views/MainPage.xaml.cs +++ b/TVHome/TVHome/Views/MainPage.xaml.cs @@ -52,71 +52,6 @@ namespace TVHome.Views currentSubPanel = SubPanelDictionary[key]; currentSubPanel.ShowPanel(); }); - - // TODO : change this TESTING code!!! - - // Model들 class들(AppShortController, HistoryShortcutController, SettingShortController)의 TVHomeImpl을 호출하여 사용할 수 있습니다. - //IEnumerable appList = TVHomeImpl.GetInstance.AppShortcutControllerInstnace.GetList(); - - // TODO : SettingShortcuts의 생성은 SettingShortcutController가 SettingShortcutFactory를 사용하여 해야합니다. - // 다른곳에서 직접 SettingShortcutFactory를 사용하는 일은 없어야 합니다. - - //var wifiButton = new Button - //{ - // Text = "WiFiSettingShortcut", - //}; - //var wifiShortcutInfo = SettingShortcutFactory.Get(SettingID.WiFi); - //if (wifiShortcutInfo == null) - //{ - // Debug.Assert(false, "WiFiShortcutInfo is NULL!!!"); - //} - - //wifiButton.Clicked += (object sender, EventArgs e) => - //{ - // if (wifiShortcutInfo.DoAction() == false) - // { - // DebuggingUtils.Popup("WiFi actions is failed, " + wifiShortcutInfo.CurrentDescription.Label); - // } - - // Button btn = sender as Button; - // btn.Text = wifiShortcutInfo.CurrentDescription.Label; - //}; - - //var btButton = new Button - //{ - // Text = "BTSettingShortcut", - //}; - //var btShortcutInfo = SettingShortcutFactory.Get(SettingID.BLUETOOTH); - //if (btShortcutInfo == null) - //{ - // Debug.Assert(false, "BTShortcutInfo is NULL!!!"); - //} - - //btButton.Clicked += (object sender, EventArgs e) => - //{ - // if (btShortcutInfo.DoAction() == false) - // { - // DebuggingUtils.Popup("BT actions is failed, " + btShortcutInfo.CurrentDescription.Label); - // } - - // Button btn = sender as Button; - // btn.Text = btShortcutInfo.CurrentDescription.Label; - //}; - - //Testing.Children.Add(new StackLayout - //{ - // VerticalOptions = LayoutOptions.Center, - // Children = - // { - // new Label - // { - // HorizontalTextAlignment = TextAlignment.Center, - // Text = "Welcome to Xamarin Forms!" - // }, - // wifiButton, - // btButton, - // } - //}); } private void OnAppearing(object sender, EventArgs e) {