private void btnSubmit_Click(object sender, EventArgs e) { lblError.Text = string.Empty; AddNewPassenger?.Invoke(tbName.Text, tbFloor.Text); }
private void InvokeAddNewPassengerEvent(int currentFloor) { AddNewPassenger.Invoke(currentFloor); }