private void afficherRam(RamVirtuelle ram)
        {
            double    y     = 0;
            double    x     = 0;
            Rectangle shape = new Rectangle();
            int       k     = 0;
            int       plc   = 0;
            double    plcy  = 50;

            foreach (Part p in ram.listPages)
            {
                TextBlock np = new TextBlock()
                {
                    TextAlignment = TextAlignment.Center, Width = 50, FontFamily = new FontFamily("Roboto"), FontSize = 20, VerticalAlignment = VerticalAlignment.Center, Height = ((1 * 250) / ram.getNombrePages())
                };
                shape        = new Rectangle();
                shape.Height = ((1 * 250) / ram.getNombrePages());
                shape.Width  = 150;

                x    = (x + shape.Height) + 1;
                plc += (int)shape.Height + 1;
                if (p.getVide() == true)
                {
                    shape.Fill = Brushes.DarkCyan;
                }
                else
                {
                    shape.Fill = Brushes.LightCyan;
                    int mil = tablePages.FindIndex(e => e.getPageCorrespandante() == k && e.getDisponible() == true);
                    np.Text = Convert.ToString(mil);
                }
                canvas1.Children.Add(shape);
                Canvas.SetLeft(shape, y);
                Canvas.SetTop(shape, x);
                canvas1.Children.Add(np);
                Canvas.SetLeft(np, plcy);
                Canvas.SetTop(np, plc);
                k++;
            }
        }