Пример #1
0
 public HiLowForm(GlavnaForma parent, int startCash)
 {
     InitializeComponent();
     rand  = new Random();
     cards = new List <Image>();
     cards.Add(Resources.hearts_1);
     cards.Add(Resources.hearts_2);
     cards.Add(Resources.hearts_3);
     cards.Add(Resources.hearts_4);
     cards.Add(Resources.hearts_5);
     cards.Add(Resources.hearts_6);
     cards.Add(Resources.hearts_7);
     cards.Add(Resources.hearts_8);
     cards.Add(Resources.hearts_9);
     cards.Add(Resources.hearts_10);
     cards.Add(Resources.hearts_11);
     cards.Add(Resources.hearts_12);
     cards.Add(Resources.hearts_13);
     cards.Add(Resources.hearts_14);
     BackColor      = Color.White;
     this.parent    = parent;
     pariInt        = startCash;
     betTip.Maximum = 100;
     timer1.Start();
     update();
     playAudio(0);
     DoubleBuffered = true;
 }
Пример #2
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            suma = (int)sumaNud.Value;
            GlavnaForma form1 = Parent as GlavnaForma;

            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
Пример #3
0
        public RoulleteForm(GlavnaForma parent, int startCash)
        {
            InitializeComponent();
            DoubleBuffered  = true;
            this.parent     = parent;
            temp            = new List <RoulleteNumbers>();
            timer1          = new Timer();
            timer1.Interval = 50;
            timer1.Tick    += new EventHandler(timer1_Tick);
            timeRotate      = 6800;
            elapsedTime     = 0;
            pozicija        = r.Next(5, 36);
            int i = pozicija - 5;

            pariInt         = startCash;
            totalMoney.Text = pariInt.ToString();
            multiSize       = 1;
            clickedLabels   = new List <Label>();
            while (i < pozicija)
            {
                temp.Add(numbers[i]);
                i++;
            }
            uplateniBroevi.Text    = "";
            uplateniBroeviTip.Text = "";
            refreshImages();
            //timer1.Start();
        }
        public SlotMachineForm(GlavnaForma parent, int startCash)
        {
            InitializeComponent();
            this.parent    = parent;
            DoubleBuffered = true;
            SlotsValues    = new int[15];
            firstRow       = 0;
            secondRow      = 0;
            thirdRow       = 0;
            fourthRow      = 0;
            fifthRow       = 0;
            r               = new Random();
            timer1          = new Timer();
            timer1.Interval = 50;
            timer1.Tick    += new EventHandler(timer1_Tick);
            timer2          = new Timer();
            timer2.Interval = 50;
            timer2.Tick    += new EventHandler(timer2_Tick);
            timer3          = new Timer();
            timer3.Interval = 50;
            timer3.Tick    += new EventHandler(timer3_Tick);
            timer4          = new Timer();
            timer4.Interval = 50;
            timer4.Tick    += new EventHandler(timer4_Tick);
            timer5          = new Timer();
            timer5.Interval = 50;
            timer5.Tick    += new EventHandler(timer5_Tick);

            for (int i = 0; i < 15; i++)
            {
                SlotsValues[i] = r.Next(1, 8);
            }
            Sliki = new List <Image>();
            Sliki.Add(Resources._1);
            Sliki.Add(Resources._2);
            Sliki.Add(Resources._3);
            Sliki.Add(Resources._4);
            Sliki.Add(Resources._5);
            Sliki.Add(Resources._6);
            Sliki.Add(Resources._7);

            Slot1.Image     = Sliki[SlotsValues[0] - 1];
            Slot2.Image     = Sliki[SlotsValues[1] - 1];
            Slot3.Image     = Sliki[SlotsValues[2] - 1];
            Slot4.Image     = Sliki[SlotsValues[3] - 1];
            Slot5.Image     = Sliki[SlotsValues[4] - 1];
            Slot6.Image     = Sliki[SlotsValues[5] - 1];
            Slot7.Image     = Sliki[SlotsValues[6] - 1];
            Slot8.Image     = Sliki[SlotsValues[7] - 1];
            Slot9.Image     = Sliki[SlotsValues[8] - 1];
            Slot10.Image    = Sliki[SlotsValues[9] - 1];
            Slot11.Image    = Sliki[SlotsValues[10] - 1];
            Slot12.Image    = Sliki[SlotsValues[11] - 1];
            Slot13.Image    = Sliki[SlotsValues[12] - 1];
            Slot14.Image    = Sliki[SlotsValues[13] - 1];
            Slot15.Image    = Sliki[SlotsValues[14] - 1];
            this.pariInt    = startCash;
            totalMoney.Text = pariInt.ToString();
        }
Пример #5
0
 public KenoForm(GlavnaForma parent, int total = 100)
 {
     InitializeComponent();
     this.parent        = parent;
     OdigraniBroevi     = new List <int>();
     labels             = new List <Label>();
     BrojUplateniBroevi = 0;
     Bet          = 0;
     TotalMoney   = total;
     MoneyTb.Text = TotalMoney.ToString();
 }