public UserPositionSelect(string sessionUserMainMenu, string sentUsername)
        {
            sentUsername = sessionUserMainMenu;
            sesstionUserSelectPosition = sessionUserMainMenu;

            InitializeComponent();

            List <UserPositionID> ListOfPositions = new List <UserPositionID>();

            ListOfPositions = UserPositionIDCollection.ReturnAList();

            this.CustomerListSelect.ItemsSource = ListOfPositions;
        }
        private void CustomerListSelect_CellClick(object sender, SelectedCellsChangedEventArgs e)
        {
            string x = GetSelectedCellValue();

            TestLabel.Content = x;
            position          = x;
            List <UserPositionID> checkXList = new List <UserPositionID>();

            checkXList = UserPositionIDCollection.ReturnAList();
            bool isThere = false;

            foreach (var element in checkXList)
            {
                if (element.UserPosition == x)
                {
                    isThere = true;
                }
            }
            if (isThere == false)
            {
                MessageBox.Show("Please Select a Position Name before trying to click the Next button");
            }
        }