Пример #1
0
		private void setTitle()
		{
			Canvas.SetTop(canvas, 0);
			Canvas.SetLeft(canvas, 0);
			canvas.Width = MainWindow.WIDTH;
			canvas.Height = HEIGHT;
			canvas.Background = MetrialColor.getBrush(MetrialColor.Name.Grey, 7);

			mTextLabel = new Label();
			Canvas.SetTop(mTextLabel, 0);
			Canvas.SetLeft(mTextLabel, 440);
			mTextLabel.Width = 400;
			mTextLabel.Height = 50;
			mTextLabel.HorizontalAlignment = HorizontalAlignment.Center;
			mTextLabel.HorizontalContentAlignment = HorizontalAlignment.Center;
			mTextLabel.VerticalContentAlignment = VerticalAlignment.Center;
			mTextLabel.FontSize = 25;
			mTextLabel.Content = "쎄시봉 수상스키장";
			mTextLabel.Foreground = MetrialColor.getBrush(MetrialColor.Name.White);
			canvas.Children.Add(mTextLabel);

			mMenuButton = new RectButton(36, 36);
			mMenuButton.setBackgroundImage("menu_white_36x36.png", "menu_white_27x27.png");
			Canvas.SetLeft(mMenuButton, 10);
			Canvas.SetTop(mMenuButton, 7);

			canvas.Children.Add(mMenuButton);
		}
Пример #2
0
		private void setDelete()
		{
			mDelete = new RectButton(DELETE_W, DELETE_H);
			mDelete.setBackgroundImage("delete.png", "delete.png");
			setPosition(mDelete, DELETE_X, DELETE_Y, DELETE_W, DELETE_H);
			mDelete.VerticalContentAlignment = VerticalAlignment.Bottom;
			mDelete.Click += onDeleteClick;
			canvas.Children.Add(mDelete);
		}
Пример #3
0
		private void setTitle()
		{
			mTitleBar = new Canvas();
			Canvas.SetTop(mTitleBar, 0);
			Canvas.SetLeft(mTitleBar, 0);
			mTitleBar.Width = 1280;
			mTitleBar.Height = 50;

			mTitleBar.Background = MetrialColor.getBrush(MetrialColor.Name.Grey, 7);

			Label title_text = new Label();
			Canvas.SetTop(title_text, 0);
			Canvas.SetLeft(title_text, 440);
			title_text.Width = 400;
			title_text.Height = 50;
			title_text.HorizontalAlignment = HorizontalAlignment.Center;
			title_text.HorizontalContentAlignment = HorizontalAlignment.Center;
			title_text.VerticalContentAlignment = VerticalAlignment.Center;
			title_text.FontSize = 25;
			title_text.Content = "쎄시봉 수상스키장";
			title_text.Foreground = MetrialColor.getBrush(MetrialColor.Name.White);
			mTitleBar.Children.Add(title_text);

			RectButton rb = new RectButton(36, 36);
			rb.setBackgroundImage("menu_white_36x36.png", "menu_white_27x27.png");
			Canvas.SetLeft(rb, 10);
			Canvas.SetTop(rb, 7);

			rb.Click += showMenu;


			mTitleBar.Children.Add(rb);

			canvas.Children.Add(mTitleBar);
		}
Пример #4
0
		private void setButton()
		{
			mDiscountButton = new RectButton(BUTTON_WIDTH, BUTTON_HEIGHT);
			mDiscountButton.setText("할  인");
			mDiscountButton.FontSize = 25;
			mDiscountButton.setBackgroundColor(MetrialColor.Name.Blue);
			Canvas.SetLeft(mDiscountButton, 0);
			Canvas.SetTop(mDiscountButton, (HEIGHT - (BUTTON_HEIGHT * 2) - 1));
			canvas.Children.Add(mDiscountButton);
			mDiscountButton.Click += showDiscountCanvas;

			mSaveButton = new RectButton(BUTTON_WIDTH - 1, BUTTON_HEIGHT);
			mSaveButton.setText("저  장");
			mSaveButton.FontSize = 25;
			mSaveButton.setBackgroundColor(MetrialColor.Name.Blue);
			Canvas.SetLeft(mSaveButton, BUTTON_WIDTH + 1);
			Canvas.SetTop(mSaveButton, (HEIGHT - (BUTTON_HEIGHT * 2) - 1));
			canvas.Children.Add(mSaveButton);

			mCancelButton = new RectButton(BUTTON_WIDTH, BUTTON_HEIGHT);
			mCancelButton.setText("취  소");
			mCancelButton.FontSize = 25;
			mCancelButton.setBackgroundColor(MetrialColor.Name.Blue);
			Canvas.SetLeft(mCancelButton, 0);
			Canvas.SetTop(mCancelButton, (HEIGHT - (BUTTON_HEIGHT)));
			canvas.Children.Add(mCancelButton);
			mCancelButton.Click += cancelOrder;

			mCheckOutButton = new RectButton(BUTTON_WIDTH - 1, BUTTON_HEIGHT);
			mCheckOutButton.setText("계  산");
			mCheckOutButton.FontSize = 25;
			mCheckOutButton.setBackgroundColor(MetrialColor.Name.Blue);
			Canvas.SetLeft(mCheckOutButton, BUTTON_WIDTH + 1);
			Canvas.SetTop(mCheckOutButton, (HEIGHT - (BUTTON_HEIGHT)));
			canvas.Children.Add(mCheckOutButton);
			mCheckOutButton.Click += showCheckOutCanvas;
		}