Ejemplo n.º 1
0
        public void RefreshLeftPanel() //a bal panel képeit tölti újra
        {
            LeftPanel.Controls.Clear();
            LeftPanel.Invalidate();
            LPheight = 0;
            //minden kép kirajzolása balra
            foreach (var image in Images)
            {
                int k = 0;
                for (int i = 0; i < 80; i += 10)
                {
                    for (int j = 0; j < 80; j += 10)
                    {
                        GenStaticPanel(new Point(j + LPleftpadding, i + LPtoppadding + LPheight), LeftPanel, image[k]);
                        k++;
                    }
                }

                LPheight += 100;
            }
            LPheight = 0;
            foreach (var image in ZImages)
            {
                int k = 0;
                for (int i = 0; i < 80; i += 10)
                {
                    for (int j = 0; j < 80; j += 10)
                    {
                        GenStaticPanel(new Point(j + LPleftpadding + 100, i + LPtoppadding + LPheight), LeftPanel, image[k]);
                        k++;
                    }
                }

                LPheight += 100;
            }
            toolStripStatusLabel1.Text = Images.Count() + " patterns loaded.";
        }