/* * Constructor * Takes a Card object and reference to the parent panel */ public EditCardPanel(Card c, EditPanel ep) { InitializeComponent(); CardReference = c; edit = ep; QuestionTextbox.Text = CardReference.Question; AnswerTextbox.Text = CardReference.Answer; }
public static void InitializeControl(EditPanel ControlToInitialize) { EditDeckScreen = ControlToInitialize; }