private void Pick_up_loot_Click(object sender, EventArgs e) { Login form = new Login(); Adatbazis.Update(Adatbazis.Select_Player_Id(form.User_box.Text), tapasztalatipont); this.Hide(); InGame.ActiveForm.Hide(); Basic form2 = new Basic(); form2.ShowDialog(); }
private void Basic_Load(object sender, EventArgs e) { Login form = new Login(); int i = Adatbazis.Select_Player_Id(form.User_box.Text); p = new Player(form.User_box.Text, Adatbazis.Select_Player_Id(form.User_box.Text), Adatbazis.Select_Player_Arany(i), Adatbazis.Select_Player_Tapasztalati_Pont(i), Adatbazis.Select_Player_Jogosultsag(i), Adatbazis.Select_Player_Palya(i) ); Arany.Text += p.arany; Loot form2 = new Loot(); Szint.Value = form2.tapasztalatipont; Player_info.Text += p.username; }