Exemplo n.º 1
0
        private void buttonX2_Click_1(object sender, EventArgs e)
        {
            if (CV_i != null)
            {
                AdderHaveSciles AdderHaveSciles1 = new AdderHaveSciles(null, CV_i.id);
                AdderHaveSciles1.NumberAdderId = NumberAdderId;
                if (AdderHaveSciles1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    listHavescil.Add(AdderHaveSciles1.HaveScil);

                    IntAddeHavescilr.Add(listHavescil.Count - 1);

                    NumberAdderId--;

                    ClassDataGridViewDo.DataGridEnterGridHaveSsciles(dataGridViewX1, listHavescil);
                }
            }
            else
            {
                AdderHaveSciles AdderHaveSciles1 = new AdderHaveSciles();
                AdderHaveSciles1.NumberAdderId = NumberAdderId;

                if (AdderHaveSciles1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    listHavescil.Add(AdderHaveSciles1.HaveScil);

                    IntAddeHavescilr.Add(listHavescil.Count - 1);

                    NumberAdderId--;

                    ClassDataGridViewDo.DataGridEnterGridHaveSsciles(dataGridViewX1, listHavescil);
                }
            }
        }
Exemplo n.º 2
0
        private async void CvAdder_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, CV_Study.CV_StudyList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx3, CvTeamNeed.CvTeamNeedList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx4, CvTeamNeed.CvTeamNeedList);
            if (CV_i != null)
            {
                labelX4.Text              = CV_i.GetCodeArch();
                textBoxX1.Text            = CV_i.FullName;
                textBoxX2.Text            = CV_i.Notes;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.Id_Study, CV_Study.CV_StudyList);
                comboBoxEx2.SelectedIndex = CV_i.Year_sutr;
                comboBoxEx3.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.ID_TemaNeed, CvTeamNeed.CvTeamNeedList);
                checkBoxX1.Checked        = CV_i.Bit;
                integerInput1.Value       = CV_i.Numberphone;

                /////
                comboBoxEx4.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.ToOutTeam, CvTeamNeed.CvTeamNeedList);

                if (CV_i.Date != null)
                {
                    dateTimeInput2.Value = Convert.ToDateTime(CV_i.ToOutDate);
                }
                textBoxX3.Text = CV_i.Notesout;
                /////////
                if (CV_i.Date != null)
                {
                    dateTimeInput1.Value = Convert.ToDateTime(CV_i.Date);
                }

                listHavescil = await HaveScil.GetByidInfoCV(CV_i.id);


                ClassDataGridViewDo.DataGridEnterGridHaveSsciles(dataGridViewX1, listHavescil);
            }
            else
            {
                dateTimeInput1.Value = DateTime.Now;
            }
        }