Ejemplo n.º 1
0
        private void kreirajIgru_Click(object sender, EventArgs e)
        {
            Sah  s    = new Sah();
            Baza baza = new Baza();

            Server.Instance().igra(baza.ucitaj("standard"));
            s.pasvaluec = 1;
            s.Show();
            this.Hide();
            Server.Instance().server1();
        }
Ejemplo n.º 2
0
 private void Ucitaj_Click(object sender, EventArgs e)
 {
     try
     {
         Baza baza = new Baza();
         Server.Instance().igra(baza.ucitaj(listView1.SelectedItems[0].Text));
         Sah s = new Sah();
         s.pasvaluec = 1;
         s.Show();
         this.Hide();
         Server.Instance().server1();
     }
     catch
     {
         label1.Text = "You must select a game";
     }
 }