public void InitializeAllControlButton()
        {
            ControlButtonViewModel item;
            string background = EditedModeColor;
            Uri    _baseUri   = new Uri("ms-appx:///Assets/image/ControlButton/");

            item            = new ControlButtonViewModel();
            item.Title      = "1";
            item.ButtonId   = "1";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_1.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "2";
            item.ButtonId   = "2";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_2.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "3";
            item.ButtonId   = "3";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_3.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "4";
            item.ButtonId   = "4";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_4.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "5";
            item.ButtonId   = "5";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_5.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "6";
            item.ButtonId   = "6";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_6.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "7";
            item.ButtonId   = "7";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_7.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "8";
            item.ButtonId   = "8";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_8.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "9";
            item.ButtonId   = "9";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_9.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "play";
            item.ButtonId   = "play";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_play.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "pause";
            item.ButtonId   = "pause";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_pause.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "rewind";
            item.ButtonId   = "rewind";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_rewind.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "forward";
            item.ButtonId   = "forward";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_forward.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "stop";
            item.ButtonId   = "stop";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_stop.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "setting";
            item.ButtonId   = "setting";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_settings.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "about";
            item.ButtonId   = "about";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_about.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "down";
            item.ButtonId   = "down";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_down.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "up";
            item.ButtonId   = "up";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_up.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "right";
            item.ButtonId   = "right";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_right.png");
            allControlButtons.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = "left";
            item.ButtonId   = "left";
            item.Background = background;
            item.SetLocalImage(_baseUri, "ic_uart_left.png");
            allControlButtons.Add(item);
        }
		public void InitializeSelectedControlButton(bool isOnEditModel) 
		{
			ControlButtonViewModel item;
			Uri _baseUri = new Uri("ms-appx:///Assets/image/ControlButton/");
			string background = null;
			if (isOnEditModel)
				background = EditedModeColor;
			else
				background = NonEditModeColor;

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "1";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "2";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "3";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "4";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "5";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "6";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "7";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "8";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

			item = new ControlButtonViewModel();
			item.Title = string.Empty;
			item.PositionId = "9";
			item.ButtonId = string.Empty;
			item.Background = background;
			item.SetLocalImage(_baseUri, "");
			selectedControlButton.Add(item);

		}
        public void InitializeSelectedControlButton(bool isOnEditModel)
        {
            ControlButtonViewModel item;
            Uri    _baseUri   = new Uri("ms-appx:///Assets/image/ControlButton/");
            string background = null;

            if (isOnEditModel)
            {
                background = EditedModeColor;
            }
            else
            {
                background = NonEditModeColor;
            }

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "1";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "2";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "3";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "4";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "5";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "6";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "7";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "8";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);

            item            = new ControlButtonViewModel();
            item.Title      = string.Empty;
            item.PositionId = "9";
            item.ButtonId   = string.Empty;
            item.Background = background;
            item.SetLocalImage(_baseUri, "");
            selectedControlButton.Add(item);
        }
		public void InitializeAllControlButton() 
		{
			ControlButtonViewModel item;
			string background = EditedModeColor;
			Uri _baseUri = new Uri("ms-appx:///Assets/image/ControlButton/");

			item = new ControlButtonViewModel();
			item.Title = "1";
			item.ButtonId = "1";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_1.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "2";
			item.ButtonId = "2";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_2.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "3";
			item.ButtonId = "3";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_3.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "4";
			item.ButtonId = "4";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_4.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "5";
			item.ButtonId = "5";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_5.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "6";
			item.ButtonId = "6";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_6.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "7";
			item.ButtonId = "7";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_7.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "8";
			item.ButtonId = "8";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_8.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "9";
			item.ButtonId = "9";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_9.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "play";
			item.ButtonId = "play";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_play.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "pause";
			item.ButtonId = "pause";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_pause.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "rewind";
			item.ButtonId = "rewind";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_rewind.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "forward";
			item.ButtonId = "forward";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_forward.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "stop";
			item.ButtonId = "stop";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_stop.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "setting";
			item.ButtonId = "setting";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_settings.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "about";
			item.ButtonId = "about";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_about.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "down";
			item.ButtonId = "down";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_down.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "up";
			item.ButtonId = "up";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_up.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "right";
			item.ButtonId = "right";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_right.png");
			allControlButtons.Add(item);

			item = new ControlButtonViewModel();
			item.Title = "left";
			item.ButtonId = "left";
			item.Background = background;
			item.SetLocalImage(_baseUri, "ic_uart_left.png");
			allControlButtons.Add(item);
		}