示例#1
0
 public SelectBlankCertForm(AddCertForm addCertForm, int blankCertTypeId)
 {
     InitializeComponent();
     _addCertForm = addCertForm;
     managingBlankCertService = new ManagingBlankCertService();
     _blankCertTypeId = blankCertTypeId;
     chosenBlankCertModels = new List<BlankCertModel>();
     managingCertService = new ManagingCertService();
 }
        private void NextButton_Click(object sender, EventArgs e)
        {
            if (BlankCertTypeComboBox.SelectedValue == null)
            {
                NotificationForm notificationForm = new NotificationForm("Giá trị loại bằng không tồn tại", "Cảnh báo", MessageBoxIcon.Warning);
                notificationForm.ShowDialog();
                return;
            }

            AddCertForm addCertForm = new AddCertForm(int.Parse(BlankCertTypeComboBox.SelectedValue.ToString()));

            addCertForm.ShowDialog();
            this.Close();
        }