private void btn_QuickRun_Click(object sender, RoutedEventArgs e) { Tournament tnmt = new Tournament(); tnmt.Getter(); UserControl inserRunData = new InsertRunData(this, tnmt.tnmtActRun); this.MainContent.Content = inserRunData; }
public void openRun(object sender, EventArgs e) { Button btn_clicked = new Button(); btn_clicked = (Button)sender; int runId = Convert.ToInt32(btn_clicked.Uid); UserControl inserRunData = new InsertRunData(mainWindow, runId); mainWindow.MainContent.Content = inserRunData; }