Ejemplo n.º 1
0
        private void ExpertiseToevoegenForm_Load(object sender, EventArgs e)
        {
            expertiseComboBox.Items.AddRange(DataExpertise.GeefExpertisen().ToArray());
            domeinenListBox.Items.AddRange(DataExpertiseDomein.GeefDomeinen().ToArray());

            ToolTip tip = new ToolTip();

            tip.IsBalloon = true;
            tip.SetToolTip(InfoDomeinPictureBox, "/ is niet toegelaten");
            tip.SetToolTip(infoExpertiseInfoPictureBox, "/ is niet toegelaten");
        }
Ejemplo n.º 2
0
        private void ExpertiseToevoegen(object sender, EventArgs e)
        {
            if (DataExpertise.BestaatExpetise(nieuweExpertiseTextBox.Text.Trim()) == false)
            {
                DataExpertise.ExpertiseToevoegen(nieuweExpertiseTextBox.Text.Trim(), nieuwExpertiseBeschrijvingRichTextBox.Text.Trim());
                MessageBox.Show("Expetise is toegevoegd", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);

                expertiseComboBox.Items.Clear();
                expertiseComboBox.Items.AddRange(DataExpertise.GeefExpertisen().ToArray());
            }

            else
            {
                MessageBox.Show("Expertise bestaat al", "Opgepast", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            nieuweExpertiseGroupBox.Visible            = false;
            nieuwExpertiseBeschrijvingRichTextBox.Text = "";
            nieuweExpertiseTextBox.Text   = "";
            nieuweExpertiseButton.Enabled = true;
        }
Ejemplo n.º 3
0
 public void AanvullenExpertisen()
 {
     expertiseComboBox.Items.AddRange(DataExpertise.GeefExpertisen().ToArray());
 }