public MixDetail(MyMix callform) { InitializeComponent(); myMix = callform; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
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); } }