コード例 #1
0
        public void Reload()
        {
            int n = DataBasee.Lister.Count();

            flowLayoutPanel2.Controls.Clear();
            Listings[] listitems = new Listings[n];
            for (int i = 0; i < listitems.Length; i++)
            {
                listitems[i] = new Listings
                {
                    //listitems[i].Price = DataBasee.Lister[i].Price;
                    Dock     = DockStyle.Top,
                    Instance = i,
                    Title    = DataBasee.Lister[i].Title,
                    Brand    = DataBasee.Lister[i].Brand,
                    Model    = DataBasee.Lister[i].Model,
                    Storage  = DataBasee.Lister[i].Internal,
                };
                flowLayoutPanel2.Controls.Add(listitems[i]);
            }
            Console.WriteLine($"{DataBasee.Lister[0].Title} Reload");
        }
コード例 #2
0
        public void TestArea()
        {
            int n = DataBasee.Lister.Count();

            Listings[] listitems = new Listings[n];
            for (int i = 0; i < listitems.Length; i++)
            {
                listitems[i] = new Listings
                {
                    //listitems[i].Price = DataBasee.Lister[i].Price;
                    Dock     = DockStyle.Top,
                    Instance = i,
                    Title    = DataBasee.Lister[i].Title,
                    Model    = DataBasee.Lister[i].Model,
                    Brand    = DataBasee.Lister[i].Brand,
                    Storage  = DataBasee.Lister[i].Internal,
                };

                flowLayoutPanel2.Controls.Add(listitems[i]);
            }
            Console.WriteLine($"{DataBasee.Lister[0].Title} TestArea");
            MessageBox.Show($"{n} Iistings Succesfully Imported \nSelect Image Folder to Continue", "Sheet Loaded", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }