public void EditData(Form1.ReceiptStruct edit) { t2Type.Value = edit.type; t2Name.Text = edit.name; this.Text = "Editar receta"; }
public Form2(Form1.ReceiptStruct edit, int state) { InitializeComponent(); InitializeDataEntry(state); EditData(edit); }