private void povikajHiLow()
        {
            if (proverkaPari())
            {
                vkupnoPari = vkupnoPari - int.Parse(pariZaSlednaIgra.Text);
                HiLowForm HiLowForm1 = new HiLowForm(this, int.Parse(pariZaSlednaIgra.Text));
                HiLowForm1.Width         = this.Width;
                HiLowForm1.Height        = this.Height;
                HiLowForm1.StartPosition = FormStartPosition.Manual;
                HiLowForm1.Location      = new Point(this.Location.X, this.Location.Y);
                this.Visible             = false;
                if (mform != null)
                {
                    mform.Hide();
                }

                HiLowForm1.ShowDialog();
                vkupnoPari = vkupnoPari + HiLowForm1.cashOutMoney;
                update();
                this.Location = HiLowForm1.Location;
                this.Location = HiLowForm1.Location;
                this.Width    = HiLowForm1.Width;
                this.Height   = HiLowForm1.Height;
                this.Visible  = true;
            }
        }
Example #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            //HiLow
            if (proverkaPari())
            {
                vkupnoPari = vkupnoPari - int.Parse(pariZaSlednaIgra.Text);
                HiLowForm HiLowForm1 = new HiLowForm(this, int.Parse(pariZaSlednaIgra.Text));

                HiLowForm1.StartPosition = FormStartPosition.Manual;
                HiLowForm1.Location      = new Point(this.Location.X, this.Location.Y);
                this.Visible             = false;
                if (mform != null)
                {
                    mform.Hide();
                }

                HiLowForm1.ShowDialog();
                vkupnoPari = vkupnoPari + HiLowForm1.cashOutMoney;
                update();
                this.Location = HiLowForm1.Location;
                this.Location = HiLowForm1.Location;
                this.Visible  = true;
            }
        }