Ejemplo n.º 1
0
        void OnRemoveClicked(object sender, EventArgs e)
        {
            Certification cert = this.lstCertifications.SelectedItem as Certification;

            if (cert == null)
            {
                return;
            }

            // remove the certification from the list of selected ones
            this.Certifications.Remove(cert);

            // add the certification to the list of available ones.
            this.AvailableCerts.Add(cert);
        }
Ejemplo n.º 2
0
        void OnCertificationSelected(object sender, EventArgs e)
        {
            Certification cert = this.certPicker.SelectedItem as Certification;

            if (cert == null)
            {
                return;
            }

            // Add the certification to the list of selected ones.
            this.Certifications.Add(cert);

            // remove it from the list of available ones in the picker
            this.AvailableCerts.Remove(cert);

            Console.WriteLine($"Inside OnCertificationSelected with {cert.Name} ");
        }