Exemplo n.º 1
0
        ///<summary>
        ///      Get EmployeesAndPositions from DB and add them to Board.GetEmployeesAndPositions Collection
        ///      <example>
        ///        <code>
        ///          Board.GetEmployeesAndPositions();
        ///        </code>
        ///      </example>
        ///    </summary>
        public static void GetEmployeesAndPositions()
        {
            Board.EmployAndPositionList.Clear();
            var positions = BoardDB.GetEmployeesAndPosition();

            foreach (var p in positions)
            {
                if (p.employ.employId != 0)
                {
                    Board.EmployAndPositionList.Add(p);
                }
            }
        }