Exemplo n.º 1
0
 public Autó()
 {
     InitializeComponent();
     conn_class = new Connection_Class();
     conn_class.Connection();
     using (MySqlCommand CMD_márka = new MySqlCommand("Select marka From markak", conn_class.conn))
         using (MySqlCommand CMD_tulaj = new MySqlCommand("Select vezeteknev, keresztnev From tulajdonos", conn_class.conn))
             using (READER_márka = CMD_márka.ExecuteReader())
             {
                 while (READER_márka.Read())
                 {
                     combo_Márka.Items.Add(READER_márka.GetString("marka"));
                 }
                 READER_márka.Close();
                 using (READER_tulaj = CMD_tulaj.ExecuteReader())
                 {
                     while (READER_tulaj.Read())
                     {
                         string teljesnév = READER_tulaj.GetString("vezeteknev") + " " + READER_tulaj.GetString("keresztnev");
                         combo_tulaj.Items.Add(teljesnév);
                     }
                     READER_tulaj.Close();
                 }
             }
 }
Exemplo n.º 2
0
 public Listázás()
 {
     InitializeComponent();
     conn_class = new Connection_Class();
     conn_class.Connection();
     tbx_veznev.Text = "A";
     tbx_kernev.Text = "B";
 }
 public Tulajdonos()
 {
     InitializeComponent();
     conn_class = new Connection_Class();
     conn_class.Connection();
 }
Exemplo n.º 4
0
 public Márka()
 {
     InitializeComponent();
     conn_class = new Connection_Class();
     conn_class.Connection();
 }