Esempio n. 1
0
        private void SelectionChange_DG(object sender, SelectionChangedEventArgs e)
        {
            var currentRowIndex = dgTraderTable.Items.IndexOf(dgTraderTable.CurrentItem);

            _picIOService = new FileIOService(PATHPICK);
            DirectoryInfo folder = new DirectoryInfo(PATHPICK);


            Im10.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im10.bmp");
            Im11.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im11.bmp");
            Im20.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im20.bmp");

            var model = new TjModel();

            model.SetImageData(File.ReadAllBytes(PATHPICK + currentRowIndex + "Im21.bmp"));

            //_tjData.
            //DisplayedImagePath21 = new Uri(PATHPICK + currentRowIndex + "Im21.bmp").ToString();
            //Im21.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im21.bmp");
            //Im30.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im30.bmp");
            //Im31.Source = _fileIOService.LoadPic(PATHPICK + currentRowIndex + "Im31.bmp");
        }