示例#1
0
        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;
            }
        }
示例#2
0
 private void ShowAdding()
 {
     CommandPanel.Hide();
     AddingPanel.Show();
 }