Can someone with more knowledge of Visual Basic 2010 Please look over this code
ID: 3536792 • Letter: C
Question
Can someone with more knowledge of Visual Basic 2010 Please look over this code and help me. with this project.
Public
Class SandwichForm
Private TheSandwich As Sandwich
Dim NameTextBox As Object
Dim BreadTextBox As Object
Dim MeatTextBox As Object
Dim CheeseTextBox As Object
Dim CondimentsTextBox As Object
Private _p1 As Object
Private _p2 As Object
Private _p3 As Object
Private _p4 As Object
Private _p5 As Object
Sub New(ByVal p1 As Object, ByVal p2 As Object, ByVal p3 As Object, ByVal p4 As Object, ByVal p5 As Object)
End Sub
ReadOnly Property SandwichInfo() As Sandwich
Get
Return TheSandwich
End Get
End Property
Private Sub OkButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OkButton.Click
Try
TheSandwich =
New Sandwich(NameTextBox.Text, BreadTextBox.Text, MeatTextBox.Text, CheeseTextBox.Text, CondimentsTextBox.Text)
SummaryForm.ShowDialog()
Catch ex As Exception
End Try
End Sub
End
Class
Public
Class SummaryForm
Private ASandwich As Sandwich
Dim NameLabel As Object
Dim BreadLabel As Object
Dim MeatLabel As Object
Dim CheeseLabel As Object
Dim CondimentsLabel As Object
Dim CondimentLabel As Object
Private Sub SummaryForm_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
ASandwich = As Sandwich.SandwichInfo
NameLabel.Text = ASandwich.Name.ToString
BreadLabel.Text = ASandwich.Bread.ToString
MeatLabel.Text = ASandwich.Meat.ToString
CheeseLabel.Text = ASandwich.Cheese.ToString
CondimentLabel.Text = ASandwich.Condiments.ToString
End Sub
Explanation / Answer
its a long homework bro
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.