public void UpdateData(string title, ContentInMainForm go_back_content) { title_ = title; go_back_content_ = go_back_content; this.lblTitle.Content = title; this.btnBack.Click += btnBack_Click; }
public void SwitchWindow(ContentInMainForm content) { this.LayoutRoot.Children.Clear(); if (content == ContentInMainForm.Home) { ucHome home = new ucHome(); this.LayoutRoot.Children.Add(home); } if (content == ContentInMainForm.Practice) { ucPractice practice = new ucPractice(); this.LayoutRoot.Children.Add(practice); } if (content == ContentInMainForm.Practice_FullScreen) { ucPractice_FullScreen practice_full = new ucPractice_FullScreen(); this.LayoutRoot.Children.Add(practice_full); } if (content == ContentInMainForm.Result) { ucBriefResults result_brief = new ucBriefResults(); this.LayoutRoot.Children.Add(result_brief); } }