/// <summary> /// 콘텐츠 뷰 변경 이벤트 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Content_Changed(object sender, EventArgs e) { selectedtab = (CustomButton)sender; if (SelectTap_Queue.Count < 2) { if (SelectTap_Queue.Count != 0) { CustomButton temp = SelectTap_Queue.Dequeue(); temp.TextColor = Color.White; temp.BackgroundColor = Color.CornflowerBlue; } selectedtab.TextColor = Color.CornflowerBlue; selectedtab.BackgroundColor = Color.White; SelectTap_Queue.Enqueue(selectedtab); } if (selectedtab.Text.Equals("판매품")) { ShopContentView.Content = ssv = new ShopSaleView(TitleName.Text, home); } else if (selectedtab.Text.Equals("정보")) { ShopContentView.Content = siv = new ShopInfoView(TitleName.Text, home); } else if (selectedtab.Text.Equals("리뷰")) { ShopContentView.Content = srv = new ShopReviewView(TitleName.Text, home); } }
public WriteReviewPage(SH_Home home, ShopReviewView wrv) { InitializeComponent(); this.home = home; this.wrv = wrv; Init(); }