Exemple #1
0
        public SelectAssetToView(string sessionUserMainMenu)
        {
            InitializeComponent();
            sessionUserSelectAssetToView = sessionUserMainMenu;

            List <Asset> ListOfAssets = new List <Asset>();

            ListOfAssets = AssetCollection.ReturnAList();

            this.AssetListSelect.ItemsSource = ListOfAssets;
        }
        public TransactionSelectAsset(string sessionUserMainMenu, string sentCustomer)
        {
            InitializeComponent();
            passedCustomer = sentCustomer;
            sessionUserSelectAssetToView = sessionUserMainMenu;

            List <Asset> ListOfAssets = new List <Asset>();

            ListOfAssets = AssetCollection.ReturnAList();

            this.AssetListSelect.ItemsSource = ListOfAssets;
        }
Exemple #3
0
        private void AssetListSelect_CellClick(object sender, SelectedCellsChangedEventArgs e)
        {
            string x = GetSelectedCellValue();

            TestLabel.Content = x;
            selectedAssetName = x;
            List <Asset> checkXList = new List <Asset>();

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

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