Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.     Dim Sim(3), Battery(3), CPU(3), OS(3) As String
  3.     Dim N As Byte
  4.    
  5.  
  6.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.         txtSim.Text = ""
  8.         txtBatery.Text = ""
  9.         txtCPU.Text = ""
  10.         txtOS.Text = ""
  11.         SetSim()
  12.         SetBattery()
  13.         SetCPU()
  14.         SetOS()
  15.     End Sub
  16.  
  17.     Private Sub SetSim()
  18.         Sim(0) = "DUAL SIM - NANO"
  19.         Sim(1) = "DUAL NANO"
  20.         Sim(2) = "DUAL SIM - NANO"
  21.     End Sub
  22.  
  23.     Private Sub SetBattery()
  24.         Battery(0) = " LI-ION 4000 MAH"
  25.         Battery(1) = "LI-ION 3000 MAH"
  26.         Battery(2) = "LI-ION 4000 MAH"
  27.     End Sub
  28.  
  29.     Private Sub SetCPU()
  30.         CPU(0) = "OCTA-CORE (4X2.4 GHZ CORTEX-A73 & 4X1.8 GHZ CORTEX-A53)"
  31.         CPU(1) = "OCTA-CORE 1.5GHZ"
  32.         CPU(2) = "OCTA-CORE (4X2.4 GHZ CORTEX-A73 & 4X1.8 GHZ CORTEX-A53)"
  33.     End Sub
  34.  
  35.     Private Sub SetOS()
  36.         OS(0) = "ANDROID 8.0 (OREO)"
  37.         OS(1) = "ANDROID 7.1 (NOUGAT)"
  38.         OS(2) = "ANDROID 8.0 (OREO)"
  39.     End Sub
  40.  
  41.     Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbZodia.SelectedIndexChanged
  42.         Select Case cbZodia.Text
  43.             Case "HUAWEI MATE 10 PRO BLACK"
  44.                 N = 0
  45.             Case "ALCATEL 5 BLACK DS"
  46.                 N = 1
  47.             Case "HUAWEI MATE 10 PRO BLUE"
  48.                 N = 2
  49.         End Select
  50.  
  51.         If N = 0 Then
  52.             PictureBox1.Visible = True
  53.             PictureBox2.Visible = False
  54.             PictureBox3.Visible = False
  55.         End If
  56.         If N = 1 Then
  57.             PictureBox2.Visible = True
  58.             PictureBox1.Visible = False
  59.             PictureBox3.Visible = False
  60.         End If
  61.         If N = 2 Then
  62.             PictureBox3.Visible = True
  63.             PictureBox2.Visible = False
  64.             PictureBox1.Visible = False
  65.         End If
  66.  
  67.         txtSim.Text = Sim(N)
  68.         txtBatery.Text = Battery(N)
  69.         txtCPU.Text = CPU(N)
  70.         txtOS.Text = OS(N)
  71.     End Sub
  72.  
  73.     Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
  74.  
  75.     End Sub
  76. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement