Beispiel #1
0
        private PozicijaSuta odrediPoziciju()
        {
            PozicijaSuta pozicija = new PozicijaSuta();

            if (this.radioButton1.Checked == true)
            {
                pozicija = PozicijaSuta.SB;
            }
            else if (this.radioButton2.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P12;
            }
            else if (this.radioButton2.Checked == true && this.radioButton10.Checked == true)
            {
                pozicija = PozicijaSuta.P13;
            }
            else if (this.radioButton3.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P22;
            }
            else if (this.radioButton3.Checked == true && this.radioButton10.Checked == true)
            {
                pozicija = PozicijaSuta.P23;
            }
            else if (this.radioButton4.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P32;
            }
            else if (this.radioButton4.Checked == true && this.radioButton10.Checked == true)
            {
                pozicija = PozicijaSuta.P33;
            }
            else if (this.radioButton5.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P42;
            }
            else if (this.radioButton5.Checked == true && this.radioButton10.Checked == true)
            {
                pozicija = PozicijaSuta.P43;
            }
            else if (this.radioButton6.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P52;
            }
            else if (this.radioButton7.Checked == true && this.radioButton10.Checked == true)
            {
                pozicija = PozicijaSuta.P62;
            }
            else if (this.radioButton7.Checked == true && this.radioButton9.Checked == true)
            {
                pozicija = PozicijaSuta.P63;
            }
            return(pozicija);
        }
Beispiel #2
0
 public SutNaKos()
 {
     this.pogodak  = false;
     this.pozicija = new PozicijaSuta();
 }