Professional Documents
Culture Documents
Backup Coding Exam 1
Backup Coding Exam 1
Backup Coding Exam 1
End If
'By WoodBlock
If Budmax >= 7750 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 9500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End If
'By WoodBlock
If Budmax >= 9500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 12500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End If
'By WoodBlock
If Budmax >= 1500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 2200 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End If
'By WoodBlock
If Budmax >= 6200 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 6800 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End If
'By WoodBlock
If Budmax >= 8500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 11000 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End Sub
End Sub
Private Sub chkDishwasher_CheckedChanged(sender As Object, e As EventArgs) Handles
chkDishwasher.CheckedChanged
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkDishwasher.Checked = False
Exit Sub
End If
End If
'By WoodBlock
If Budmax >= 15000 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 23000 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End If
'By WoodBlock
If Budmax >= 4500 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = False
End If
'By Granite
If Budmax >= 5750 Then
rdbleminate.Enabled = True
rdbWoodBlock.Enabled = True
rdbGranite.Enabled = True
End If
End Sub
End Sub
'rdbsmallLSK
If rdbSmallLSK.Checked = True Then
txtComposition.Text = kitprices(0)
End If
'rdbMediumLSK
If rdbMediumLSK.Checked = True Then
txtComposition.Text = kitprices(1)
End If
'rdbLargeLSK
If rdbLargeLSK.Checked = True Then
txtComposition.Text = kitprices(2)
End If
'rdbSmallSK
If rdbSmallSK.Checked = True Then
txtComposition.Text = kitprices(3)
End If
'rdbMediumSK
If rdbMediumSK.Checked = True Then
txtComposition.Text = kitprices(4)
End If
'rdbLargeSK
If rdbLargeSK.Checked = True Then
txtComposition.Text = kitprices(5)
End If
'rdbLargeIK
If rdbLargeIK.Checked = True Then
txtComposition.Text = kitprices(6)
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkBasicFridgeFreezer.Checked = False
Exit Sub
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkHob.Checked = False
Exit Sub
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkDishwasher.Checked = False
Exit Sub
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkAmericanStyleFridgeFreezer.Checked = False
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkSingleOven.Checked = False
End If
'Data validation if the budget lower than price with composition
If (txtComposition.Text + ToPay) > Budmax Then
MessageBox.Show("it's so small budget")
chkDoubleOven.Checked = False
End If
End Sub
End Sub
End Sub
End If
'validation for the kitchen design is some true
If LengKit >= 250 And WidhKit >= 180 Then
rdbSmallLSK.Enabled = True
rdbMediumLSK.Enabled = False
rdbLargeLSK.Enabled = False
rdbSmallSK.Enabled = True
rdbMediumSK.Enabled = False
rdbLargeSK.Enabled = False
rdbLargeIK.Enabled = False
End If
'validation for kitchen design length more 350 and width more 240
If LengKit >= 350 And WidhKit >= 240 Then
rdbSmallLSK.Enabled = True
rdbMediumLSK.Enabled = True
rdbLargeLSK.Enabled = False
rdbSmallSK.Enabled = True
rdbMediumSK.Enabled = True
rdbLargeSK.Enabled = False
rdbLargeIK.Enabled = False
End If
'validation for kitchen design length more 450 and width more 450
If LengKit >= 450 And WidhKit >= 450 Then
rdbSmallLSK.Enabled = True
rdbMediumLSK.Enabled = True
rdbLargeLSK.Enabled = True
rdbSmallSK.Enabled = True
rdbMediumSK.Enabled = True
rdbLargeSK.Enabled = False
rdbLargeIK.Enabled = True
End If
'validation for kitchen design length more 500 and width more 500
If LengKit >= 500 And WidhKit >= 500 Then
rdbSmallLSK.Enabled = True
rdbMediumLSK.Enabled = True
rdbLargeLSK.Enabled = True
rdbSmallSK.Enabled = True
rdbMediumSK.Enabled = True
rdbLargeSK.Enabled = True
rdbLargeIK.Enabled = True
End If
'Show result the Ench_ments
chkBasicFridgeFreezer.Enabled = True
chkAmericanStyleFridgeFreezer.Enabled = True
chkDishwasher.Enabled = True
chkHob.Enabled = True
chkSingleOven.Enabled = True
chkDoubleOven.Enabled = True
End Sub
End Class