Esempio n. 1
0
        public MyMix(MainScreen callform)
        {
            InitializeComponent();


            mainScr = callform;
            //Get user has mix table
            mixTable  = Database.getMyMixTableInMyMix(mainScr.CurrentUser.UserID);
            mixDetail = new MixDetail(this);

            firstLoadChildForm();

            // initialize container and mixdetail
            for (int i = 0; i < mixTable.Rows.Count; i++)
            {
                mixContainers.Add(new MyMixContainer(this, mixTable.Rows[i]["myMixID"].ToString(), mixDetail));
            }
            mix_Flowpanel.Controls.AddRange(mixContainers.ToArray());
            //add mix to home screen
            mainScr.homeScr.addToMix(mixContainers.ToArray());

            this.DoubleBuffered = true;
            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Esempio n. 2
0
        public MyMixContainer(MyMix callform, string id, MixDetail detail)
        {
            InitializeComponent();

            //mixForm to get userID from mainscreen
            mixForm = callform;
            mixID   = id;
            //load mixdetail on clicking opacity panel
            mixDetail = detail;

            cover_worker.RunWorkerAsync();
            artist_worker.RunWorkerAsync();


            artist_label.Text = "";

            this.DoubleBuffered = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }