public MainScreen() { loading_thread = new Thread(new ThreadStart(loadingFunc)); InitializeComponent(); //Dang nhap loginForm = new Login(this); loginForm.ShowDialog(); searchBar_textBox.GotFocus += RemoveText; searchBar_textBox.LostFocus += AddText; soundPlayer.PlayStateChange += SoundPlayer_PlayStateChange; songDetail = new SongDetail(this); CreatePL = new CreatePlayList(this); firstLoadChildForm(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { EnableDoubleBuferring(control); } string connectString = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString; connection = new SqlConnection(connectString); //debug.Show(); }
private void Btn_createnewPL_Click(object sender, EventArgs e) { CreatePL = new CreatePlayList(mainScr, this); CreatePL.ShowDialog(); }