private void EntnehmeContentGUIDarstellungAus(Recordcard recordcard) { if (recordcard.content.GetType() == typeof(RecordCardTextContent)) { contentGUI = new RecordcardTextGUI((RecordCardTextContent)recordcard.content); } else if (recordcard.content.GetType() == typeof(RecordCardAbbildungContent)) { contentGUI = new RecordcardAbbildungGUI((RecordCardAbbildungContent)recordcard.content); } else if (recordcard.content.GetType() == typeof(RecordCardAufzaehlungContent)) { contentGUI = new RecordcardAufzaehlungGUI((RecordCardAufzaehlungContent)recordcard.content); } else if (recordcard.content.GetType() == typeof(RecordCardMultipleChoiceContent)) { contentGUI = new RecordcardMultipleChoiceGUI((RecordCardMultipleChoiceContent)recordcard.content); } txtBxThema.Text = recordcard.Thema; tabControl1.Controls.Clear(); this.tabControl1.Controls.Add(contentGUI); Refresh(); }
private void ResetContentGUI() { tabControl1.Controls.Clear(); contentGUI = null; txtBxThema.Text = ""; }