private void StaffelBackBtnClick(object sender, EventArgs e) { DownloadPanel.BringToFront(); selectedPanel = "DownloadPanel"; SeitenCountLabel.Visible = true; vorbtn.Visible = true; backbtn.Click -= StaffelBackBtnClick; backbtn.Click += backbtn_Click; }
private void MenueBtnClick(object sender, EventArgs e) { Button clickedbtn = sender as Button; switch (clickedbtn.Name) { case "DownloadBtn": DownloadPanel.BringToFront(); selectedPanel = "DownloadPanel"; break; case "DownloadingBtn": DownloadingPanel.BringToFront(); selectedPanel = "DownloadingPanel"; break; case "SettingBtn": SettingPanel.BringToFront(); selectedPanel = "SettingPanel"; break; } }