private void menu_for_ItemClicked(object sender, ToolStripItemClickedEventArgs e) // obsługa kliku opcji w menu { int quizId = Int32.Parse(quizID); switch (e.ClickedItem.Name) { case "Del": _service.DeleteQuiz(quizId); UpdateDgv(); break; case "Edit": var panel = new AddingPanel() { IsQuizExist = true, NameOfQuizDeliver = quizName, QuizID = quizId }; panel.Show(); Hide(); break; } }
private void ShowAdding() { CommandPanel.Hide(); AddingPanel.Show(); }