Example #1
0
        /// <summary>
        /// Populates the data abou the current state of different visitor groups
        /// Takes an array of labels as a parameter, from which 0th label - for present
        /// 1st label - for expected
        /// 2nd label - fro total
        /// </summary>
        /// <param name="lbls"></param>
        static public void PopulateVisitorGroupData(Label[] lbls)
        {
            int nmbrTotal, nmbrExp, nmbrPres;

            VisitorsDb.GetNmbrOfVistrPerStatus(out nmbrTotal, out nmbrExp, out nmbrPres);
            try
            {
                lbls[0].Text = nmbrPres.ToString();
                lbls[1].Text = nmbrExp.ToString();
                lbls[2].Text = nmbrTotal.ToString();
            }
            catch
            {
                Console.WriteLine("okay, didn't work");
            }
        }