Esempio n. 1
0
 private void _ctrlButStartShow_Click(object sender, EventArgs e)
 {
     _ctrlTimer.Interval = 1;
     _ctrlTimer.Enabled  = true;
     MainUnitProcessor.StartQueueing();
     MainUnitProcessor.ResetQueueTimer();
     MainUnitProcessor.ResetCashBoxTimer();
 }
Esempio n. 2
0
 private void _ctrlTimer_Tick(object sender, EventArgs e)
 {
     MainUnitProcessor.TimerQueue();
     MainUnitProcessor.TimerMoveQueue();
     MainUnitProcessor.TimerOutlaw();
     MainUnitProcessor.TimerCashBox();
     MainUnitProcessor.GetCashArray();
     _FillDGV();
     DrawingClass.MainDrawMethod();
 }
Esempio n. 3
0
 public Customer()
 {
     GotMoney = false;
     X        = 690;
     Y        = 265;
     Tries    = 3;
     Moving   = 1;
     State    = 1;
     MainUnitProcessor.GetRandomShirtAndPants(out Pants, out Shirt);
     Desire = MainUnitProcessor.GetRandomMoneyCount();
 }
Esempio n. 4
0
 private void _ctrlButRefill_Click(object sender, EventArgs e)
 {
     if (MainUnitProcessor.ParseNominals(_ctrlTxb.Text))
     {
         MainUnitProcessor.RefillCashBox();
         DrawingClass.MainDrawMethod();
     }
     else
     {
         MessageBox.Show("Неподходящие номиналы.");
     }
 }
Esempio n. 5
0
 public static void DrawCashBox()
 {
     LogicsCanvas.DrawLine(Pens.Black, 0, 465, 740, 465);
     Point[] Points = new Point[5] {
         new Point(60, 170),
         new Point(125, 170),
         new Point(170, 295),
         new Point(170, 465),
         new Point(60, 465)
     };
     LogicsCanvas.FillPolygon(Brushes.LightGray, Points);
     LogicsCanvas.DrawPolygon(Pens.Black, Points);
     LogicsCanvas.DrawString("Всего денег на сумму: " + MainUnitProcessor.GetMoneyCount().ToString() + " p.", new Font("Arial", 20, FontStyle.Bold), Brushes.DarkBlue, 50, 50);
 }
Esempio n. 6
0
            public void MoveQueue()
            {
                NodeClass Temp = structure_Head;
                Customer  Cust;

                for (int i = 0; i < structure_Count; i++)
                {
                    Cust = (Customer)Temp.GetData();
                    if (Cust.GetPosition() > Spaces[i])
                    {
                        Cust.MoveCustomer();
                    }
                    if (Cust.GetPosition() == 200 && !MainUnitProcessor.MainMachine.GetActiveState())
                    {
                        MainUnitProcessor.ActivateMachine();
                    }
                    Temp = Temp.node_NextNode;
                }
            }
Esempio n. 7
0
 private void _ctrlButDrawCashBox_Click(object sender, EventArgs e)
 {
     MainUnitProcessor.PlaceCashBox();
     _ctrlNumLower.Enabled = _ctrlNumUpper.Enabled = _ctrlButRefill.Enabled = true;
     DrawingClass.MainDrawMethod();
 }
Esempio n. 8
0
 public void RethinkDesire()
 {
     Desire = MainUnitProcessor.GetRandomMoneyCount();
 }