Exemplo n.º 1
0
        void stavka4()
        {
            if (stav4 < 2) // == 0
            {
                endofStavka();
                return;
            }
            st4         = new stakan();
            st4.onStop += endofStavka;
            pn.X       += size_stack;
            // pn.X += distance / 2;

            st4.stak(stav4 / 25, pn, workForm, border, 0, number);
        }
Exemplo n.º 2
0
        void stavka3()
        {
            if (stav3 == 0)
            {
                endofStavka();
                return;
            }
            st3         = new stakan();
            st3.onStop += stavka4;
            pn.X       += size_stack;
            int anons = 0;

            if (itsStavka)
            {
                anons = 3;
                //pn.X += distance;
            }
            //else pn.X += distance / 2;
            st3.stak(stav3 / 25, pn, workForm, border, anons, number);
        }
Exemplo n.º 3
0
        void stavka2()
        {
            if (stav2 == 0)
            {
                endofStavka();
                return;
            }
            st2         = new stakan();
            st2.onStop += stavka3;
            pn.X       += size_stack;//150
            int anons = 0;

            if (itsStavka)
            {
                anons = 2;
                //pn.X += distance;//50
            }
            // else pn.X += distance / 2;

            st2.stak(stav2 / 25, pn, workForm, border, anons, number);
        }
Exemplo n.º 4
0
        public void inputStavki(int st1, int st2, int st3, int st4, GeneralForm fsv, int number)
        {
            //workForm = fsv;
            stav1       = st1;
            stav2       = st2;
            stav3       = st3;
            stav4       = st4;
            this.number = number;
            //ff = v;

            if (stav1 == 0)
            {
                onStShow?.Invoke();
                return;
            }

            // size_stack =  NewSize(240, 0).Width;//41
            // distance = NewSize(400, 0).Width /2;
            // pn = NewRelPoint(55, 43);//46,90
            if (st4 == 0 && st3 != 0)
            {
                itsStavka  = true;
                size_stack = NewSize(252, 0).Width;
                distance   = NewSize(400, 0).Width / 2;
                pn         = NewRelPoint(17, 123);
                border     = new PictureBox
                {
                    Location  = NewPoint(860, 310),
                    Size      = NewSize(800, 800),
                    Name      = "oneuse",
                    BackColor = Color.Transparent,
                    Image     = Properties.Resources.RAMKA,
                    SizeMode  = PictureBoxSizeMode.StretchImage,
                    Parent    = workForm,
                };
            }
            else
            {
                size_stack = NewSize(223, 0).Width;
                distance   = NewSize(400, 0).Width / 2;
                pn         = NewRelPoint(20, 70);
                border     = new PictureBox
                {
                    Location  = NewPoint(1500, 790),
                    Name      = "oneuse",
                    Size      = NewSize(945, 450),
                    BackColor = Color.Transparent,
                    Image     = Properties.Resources.RAMKA,
                    SizeMode  = PictureBoxSizeMode.StretchImage,
                    Parent    = workForm,
                };
            }

            st         = new stakan();
            st.onStop += stavka2;
            int anons = stav1 + stav2 + stav3; // + stav4;

            if (itsStavka)
            {
                anons = 1;
            }
            st.stak(stav1 / 25, pn, workForm, border, anons, number);
        }