コード例 #1
0
        public Select_Question_To_Edit(int testId, Select_Test_To_Edit parent)
        {
            InitializeComponent();

            this.testId = testId;
            this.parent = parent;

            //наследуемый метод
            base.Top_Button(bunifuImageButton1_Min, bunifuImageButton1_Max, bunifuImageButton2_Norm);
            this.button_EditQuestion.Click      += Button_EditQuestion_Click;
            this.bunifuImageButton1_Close.Click += button_CancelEditQuestion_Click;
            using (Tests_DBContainer tests = new Tests_DBContainer())
            {
                var row = tests.Test.FirstOrDefault(t => t.Id == testId);
                if (row != null)
                {
                    textBox_AddEditTestTitle.Text = row.Title;
                    renderQuestionList();
                }
            }
        }
コード例 #2
0
ファイル: Teacher.cs プロジェクト: kozubov/TASTER_App
        private void BunifuImageButton1_Edit_Test_Click(object sender, EventArgs e)
        {
            Select_Test_To_Edit selectTest = new Select_Test_To_Edit(this.user);

            selectTest.ShowDialog();
        }