Esempio n. 1
0
        private void btnModifica_Click(object sender, EventArgs e)
        {
            ResetCuloareEtichete();

            CodEroare codValidare = Validare(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text);

            if (codValidare != CodEroare.CORECT)
            {
                MarcheazaControaleCuDateIncorecte(codValidare);
            }
            else
            {
                PersoaneContact s = new PersoaneContact(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text, Convert.ToInt32(2));
                s.IdContact = Int32.Parse(lblID.Text);

                s.GRUP    = GetGrupSelectat();
                s.REGIUNE = GetRegiuneSelectata();

                s.Genul = cmbGenul.Text;

                adminPersoane.UpdatePersoana(s);
                lblInfo.Text = "Contactul a fost actualizat";

                ResetControale();
            }
        }
Esempio n. 2
0
        public PersoaneContact[] GetPersoane(out int nrPersoane)
        {
            PersoaneContact[] Persoane = new PersoaneContact[PAS_ALOCARE];

            try
            {
                // instructiunea 'using' va apela sr.Close()
                using (StreamReader sr = new StreamReader(NumeFisier))
                {
                    string line;
                    nrPersoane = 0;

                    //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
                    while ((line = sr.ReadLine()) != null)
                    {
                        Persoane[nrPersoane++] = new PersoaneContact(line);
                        if (nrPersoane == PAS_ALOCARE)
                        {
                            Array.Resize(ref Persoane, nrPersoane + PAS_ALOCARE);
                        }
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            return(Persoane);
        }
        private int GetID()
        {
            int Idcon = ID_PRIMUL_CONTACT;

            try
            {
                //instructiunea 'using' va apela sBinFile.Close();
                using (Stream sBinFile = File.Open(NumeFisier, FileMode.Open))
                {
                    BinaryFormatter b = new BinaryFormatter();

                    //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
                    while (sBinFile.Position < sBinFile.Length)
                    {
                        //Observati conversia!!!
                        PersoaneContact s = (PersoaneContact)b.Deserialize(sBinFile);
                        Idcon = s.IdContact + INCREMENT;
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }
            return(Idcon);
        }
        private int GetID()
        {
            int IDContact = ID_PRIMUL_CONTACT;

            try
            {
                // instructiunea 'using' va apela sr.Close()
                using (StreamReader sr = new StreamReader(NumeFisier))
                {
                    string line;

                    //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
                    while ((line = sr.ReadLine()) != null)
                    {
                        PersoaneContact s = new PersoaneContact(line);
                        IDContact = Convert.ToInt32(s.IdContact) + INCREMENT;
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }
            return(IDContact);
        }
        public ArrayList GetPersoane()
        {
            ArrayList persoane = new ArrayList();

            try
            {
                // instructiunea 'using' va apela sr.Close()
                using (StreamReader sr = new StreamReader(NumeFisier))
                {
                    string line;

                    //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
                    while ((line = sr.ReadLine()) != null)
                    {
                        PersoaneContact s = new PersoaneContact(line);
                        persoane.Add(s);
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            return(persoane);
        }
        public void AddPersoana(PersoaneContact s)
        {
            s.IdContact = GetID();

            try
            {
                BinaryFormatter b = new BinaryFormatter();

                //instructiunea 'using' va apela sBinFile.Close();
                using (Stream sBinFile = File.Open(NumeFisier, FileMode.Append, FileAccess.Write))
                {
                    //serializare unui obiect
                    b.Serialize(sBinFile, s);
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            //throw new Exception("Optiunea AddStudent nu este implementata");
        }
Esempio n. 7
0
 public PersoaneContact GetContactByIndex(int index)
 {
     try
     {
         // instructiunea 'using' va apela sr.Close()
         using (StreamReader sr = new StreamReader(NumeFisier))
         {
             string line;
             int    contor = 0;
             //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
             while ((line = sr.ReadLine()) != null)
             {
                 PersoaneContact contact = new PersoaneContact(line);
                 if (contor == index)
                 {
                     return(contact);
                 }
                 contor++;
             }
         }
     }
     catch (IOException eIO)
     {
         throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
     }
     catch (Exception eGen)
     {
         throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
     }
     return(null);
 }
        public PersoaneContact GetPersoane(string nume, string prenume)//, string numar, string mail)
        {
            try
            {
                // instructiunea 'using' va apela sr.Close()
                using (StreamReader sr = new StreamReader(NumeFisier))
                {
                    string line;

                    //citeste cate o linie si creaza un obiect de tip Student pe baza datelor din linia citita
                    while ((line = sr.ReadLine()) != null)
                    {
                        PersoaneContact persoana = new PersoaneContact(line);
                        if (persoana.Nume.Equals(nume) && persoana.Prenume.Equals(prenume))
                        {
                            return(persoana);
                        }
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }
            return(null);
        }
Esempio n. 9
0
        private void btnCauta_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);//, txtNumarTelefon.Text, txtMail.Text);

            if (s != null)
            {
                lblInfo.Text = s.ConversieLaSir();
            }
            else
            {
                lblInfo.Text = "Nu s-a gasit Persoana de contact";
            }
            if (txtNume.Enabled == true && txtPrenume.Enabled == true)
            {
                txtNume.Enabled    = false;
                txtPrenume.Enabled = false;

                //dezactivare butoane radio
                foreach (var button in gbdGrupContact.Controls)
                {
                    if (button is RadioButton)
                    {
                        var radioButton = button as RadioButton;
                        radioButton.Enabled = false;
                    }
                }
                foreach (var ck in gpbRegiuni.Controls)
                {
                    if (ck is CheckBox)
                    {
                        var radioButton = ck as CheckBox;
                        radioButton.Enabled = false;
                    }
                }
            }
            else
            {
                txtNume.Enabled    = true;
                txtPrenume.Enabled = true;
                foreach (var button in gbdGrupContact.Controls)
                {
                    if (button is RadioButton)
                    {
                        var radioButton = button as RadioButton;
                        radioButton.Enabled = true;
                    }
                }
                foreach (var ck in gpbRegiuni.Controls)
                {
                    if (ck is CheckBox)
                    {
                        var radioButton = ck as CheckBox;
                        radioButton.Enabled = true;
                    }
                }
            }
        }
Esempio n. 10
0
        private void btnRetea_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);
            if (s != null)
            {

                int NumarTelefon = 0;
                int ReteaTelefon = 0;
                int numar = Convert.ToInt32(s.NumarTelefon);
                for (int i = 0; i < Convert.ToInt32(s.NumarTelefon).ToString().Length; i++)
                {
                    if (i < 6 )
                    {
                        NumarTelefon = numar / 10;
                        numar = numar / 10;

                    }

                }
                ReteaTelefon = NumarTelefon % 1000;
                //lblRetea.Text = "" + ReteaTelefon;
                if (ReteaTelefon == 740 || ReteaTelefon == 741 || ReteaTelefon == 742 || ReteaTelefon == 743 || ReteaTelefon == 744 || ReteaTelefon == 745 || ReteaTelefon == 746 || ReteaTelefon == 747 || ReteaTelefon == 748 || ReteaTelefon == 749 ||
                    ReteaTelefon == 750 || ReteaTelefon == 751 || ReteaTelefon == 752 || ReteaTelefon == 753 || ReteaTelefon == 754 || ReteaTelefon == 755 || ReteaTelefon == 756 || ReteaTelefon == 757 || ReteaTelefon == 758 || ReteaTelefon == 759)
                {
                    lblInfo.Text = "Contactul " + s.NumeleComplet + " Este in reteaua Orange";
                }
                if (ReteaTelefon == 760 || ReteaTelefon == 761 || ReteaTelefon == 762 || ReteaTelefon == 763 || ReteaTelefon == 764 || ReteaTelefon == 765 || ReteaTelefon == 766 || ReteaTelefon == 767 || ReteaTelefon == 768 || ReteaTelefon == 769 ||
                    ReteaTelefon == 780 || ReteaTelefon == 711  || ReteaTelefon == 783 || ReteaTelefon == 784 || ReteaTelefon == 785 || ReteaTelefon == 786 || ReteaTelefon == 787 || ReteaTelefon == 788 )
                {
                    lblInfo.Text = "Contactul " + s.NumeleComplet + " Este in reteaua Telekom";
                }
                if (ReteaTelefon == 720 || ReteaTelefon == 721 || ReteaTelefon == 722 || ReteaTelefon == 723 || ReteaTelefon == 724 || ReteaTelefon == 725 || ReteaTelefon == 726 || ReteaTelefon == 727 || ReteaTelefon == 728 || ReteaTelefon == 729 ||
                    ReteaTelefon == 730 || ReteaTelefon == 731 || ReteaTelefon == 732 || ReteaTelefon == 733 || ReteaTelefon == 734 || ReteaTelefon == 735 || ReteaTelefon == 736 || ReteaTelefon == 737 || ReteaTelefon == 738 || ReteaTelefon == 739 || ReteaTelefon == 799)
                {
                    lblInfo.Text = "Contactul " + s.NumeleComplet + " Este in reteaua Vodafone";
                }
                if(ReteaTelefon == 770 || ReteaTelefon == 771 || ReteaTelefon == 772 || ReteaTelefon == 773 || ReteaTelefon == 774 || ReteaTelefon == 775 || ReteaTelefon == 776)
                {
                    lblInfo.Text = "Contactul " + s.NumeleComplet + " Este in reteaua Digi Mobil";

                }
                if (ReteaTelefon == 701 || ReteaTelefon == 702 )
                {
                    lblInfo.Text = "Contactul " + s.NumeleComplet + " Este in reteaua LycaMobile";

                }

            }
            else
            {
                lblInfo.Text = "Contact inexistent";
            }
        }
Esempio n. 11
0
        private void lstAfisare_SelectedIndexChanged(object sender, EventArgs e)
        {
            ResetControale();
            PersoaneContact s = null;

            try
            {
                s = adminPersoane.GetContactByIndex(lstAfisare.SelectedIndex);
            }
            catch (Exception ex)
            {
                lblInfo.Text = "Eroare: " + ex.Message;
            }

            if (s != null)
            {
                lblID.Text = s.IdContact.ToString();

                txtNume.Text         = s.Nume;
                txtPrenume.Text      = s.Prenume;
                txtMail.Text         = s.AdresaEmail;
                txtNumarTelefon.Text = s.NumarTelefon;

                foreach (var prgstd in gbdGrupContact.Controls)
                {
                    if (prgstd is RadioButton)
                    {
                        var prgstdBox = prgstd as RadioButton;
                        if (prgstdBox.Text == s.GRUP.ToString())
                        {
                            prgstdBox.Checked = true;
                        }
                    }
                }
                foreach (var ck in gpbRegiuni.Controls)
                {
                    if (ck is CheckBox)
                    {
                        var ch = ck as CheckBox;
                        if (ch.Text == s.REGIUNE.ToString())
                        {
                            ch.Checked = true;
                        }
                    }
                }
                cmbGenul.Text = s.Genul.ToString();
            }
        }
Esempio n. 12
0
        private void btnModifica_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);

            if (s != null)
            {
                //adminPersoane.UpdatePersoana(s);
                lblModifica.Text   = "Modificare efectuata cu succes";
                txtNume.Enabled    = true;
                txtPrenume.Enabled = true;
            }
            else
            {
                lblModifica.Text = "Contact inexistent";
            }
        }
Esempio n. 13
0
        private void btnModifica_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);
            if (s != null)
            {
                int intnumar;
                Int32.TryParse(txtNumarTelefon.Text, out intnumar);
                s.NumarTelefon = intnumar.ToString();

                lblInfo.Text = "Modificare efectuata cu succes";
                adminPersoane.UpdatePersoana(s);
                txtNume.Enabled = true;
                txtPrenume.Enabled = true;
            }
            else
            {
                lblInfo.Text = "Contact inexistent";
            }
        }
 public void AddPersoana(PersoaneContact s)
 {
     try
     {
         //instructiunea 'using' va apela la final swFisierText.Close();
         //al doilea parametru setat la 'true' al constructorului StreamWriter indica modul 'append' de deschidere al fisierului
         using (StreamWriter swFisierText = new StreamWriter(NumeFisier, true))
         {
             swFisierText.WriteLine(s.ConversieLaSir_PentruFisier());
         }
     }
     catch (IOException eIO)
     {
         throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
     }
     catch (Exception eGen)
     {
         throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
     }
 }
Esempio n. 15
0
        private void btnAdauga_Click(object sender, EventArgs e)
        {
            ResetCuloareEtichete();
            PersoaneContact s;
            CodEroare codValidare = Validare(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text);
            if (codValidare != CodEroare.CORECT)
            {
                MarcheazaControaleCuDateIncorecte(codValidare);
            }
            else
            {
                s = new PersoaneContact(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text,Convert.ToInt32(2));

                s.GRUP = GetGrupSelectat();

                s.GENUL = GetGenSelectat();

                adminPersoane.AddPersoana(s);
                lblInfo.Text = "Contactul a fost adaugat";
            }
        }
Esempio n. 16
0
        private void btnAdauga_Click(object sender, EventArgs e)
        {
            PersoaneContact s;

            txtNumarTelefon.ForeColor = Color.Black;
            txtNume.ForeColor         = Color.Black;
            txtPrenume.ForeColor      = Color.Black;
            txtMail.ForeColor         = Color.Black;
            txtGrup.ForeColor         = Color.Black;
            CodEroare valideaza = Validare(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text);

            if (valideaza != CodEroare.CORECT)
            {
                switch (valideaza)
                {
                case CodEroare.NUME_INCORECT:
                    txtNume.ForeColor = Color.Red;
                    break;

                case CodEroare.PRENUME_INCORECT:
                    txtPrenume.ForeColor = Color.Red;
                    break;

                case CodEroare.NUMAR_INCORECTE:
                    txtNumarTelefon.ForeColor = Color.Red;
                    break;

                case CodEroare.MAIL_INCORECT:
                    txtMail.ForeColor = Color.Red;
                    break;
                }
            }
            else
            {
                s = new PersoaneContact(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text, Convert.ToInt32(txtGrup.Text));
                adminPersoane.AddPersoana(s);

                lblAdauga.Text = "Contactul a fost adaugat";
            }
        }
        public bool UpdatePersoana(PersoaneContact s)
        {
            bool ok = false;
            List <PersoaneContact> contacte = GetPersoane();

            try
            {
                BinaryFormatter b = new BinaryFormatter();

                //instructiunea 'using' va apela sBinFile.Close();
                using (Stream sBinFile = File.Open(NumeFisier, FileMode.Truncate, FileAccess.Write))
                {
                    foreach (var stud in contacte)
                    {
                        //serializare unui obiect
                        if (stud.IdContact == s.IdContact)
                        {
                            b.Serialize(sBinFile, s);
                        }
                        else
                        {
                            b.Serialize(sBinFile, stud);
                        }
                    }
                    ok = true;
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }
            return(ok);

            throw new Exception("Optiunea UpdateStudent nu este implementata");
        }
        public PersoaneContact GetContactByIndex(int index)
        {
            PersoaneContact        s        = null;
            List <PersoaneContact> contacte = new List <PersoaneContact>();

            try
            {
                BinaryFormatter b      = new BinaryFormatter();
                int             contor = 0;
                //instructiunea 'using' va apela sBinFile.Close();
                using (Stream sBinFile = File.Open(NumeFisier, FileMode.Open))
                {
                    while (sBinFile.Position < sBinFile.Length)
                    {
                        s = (PersoaneContact)b.Deserialize(sBinFile);
                        //Observati conversia!!!
                        contacte.Add((PersoaneContact)b.Deserialize(sBinFile));
                        if (contor == index)
                        {
                            break;
                        }
                        contor++;
                    }
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            return(s);

            //throw new Exception("Optiunea GetStudentByIndex nu este implementata");
        }
Esempio n. 19
0
        private void btnCauta_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);//, txtNumarTelefon.Text, txtMail.Text);

            if (s != null)
            {
                lblCauta.Text = s.ConversieLaSir();
            }
            else
            {
                lblCauta.Text = "Nu s-a gasit Persoana de contact";
            }
            if (txtNume.Enabled == true && txtPrenume.Enabled == true)
            {
                txtNume.Enabled    = false;
                txtPrenume.Enabled = false;
            }
            else
            {
                txtNume.Enabled    = true;
                txtPrenume.Enabled = true;
            }
        }
        public bool UpdatePersoana(PersoaneContact studentActualizat)
        {
            ArrayList persoane            = GetPersoane();
            bool      actualizareCuSucces = false;

            try
            {
                //instructiunea 'using' va apela la final swFisierText.Close();
                //al doilea parametru setat la 'false' al constructorului StreamWriter indica modul 'overwrite' de deschidere al fisierului
                using (StreamWriter swFisierText = new StreamWriter(NumeFisier, false))
                {
                    foreach (PersoaneContact conct in persoane)
                    {
                        //informatiile despre studentul actualizat vor fi preluate din parametrul "studentActualizat"
                        if (conct.IdContact != studentActualizat.IdContact)
                        {
                            swFisierText.WriteLine(conct.ConversieLaSir_PentruFisier());
                        }
                        else
                        {
                            swFisierText.WriteLine(studentActualizat.ConversieLaSir_PentruFisier());
                        }
                    }
                    actualizareCuSucces = true;
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            return(actualizareCuSucces);
        }
Esempio n. 21
0
        private void btnAdauga_Click(object sender, EventArgs e)
        {
            ResetCuloareEtichete();
            PersoaneContact s;
            CodEroare       codValidare = Validare(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text);

            if (codValidare != CodEroare.CORECT)
            {
                MarcheazaControaleCuDateIncorecte(codValidare);
            }
            else
            {
                s = new PersoaneContact(txtNume.Text, txtPrenume.Text, txtNumarTelefon.Text, txtMail.Text, Convert.ToInt32(2));

                s.GRUP             = GetGrupSelectat();
                s.Genul            = cmbGenul.Text;
                s.REGIUNE          = GetRegiuneSelectata();
                s.DataActualizarii = DateTime.Now;
                s.DataNasterii     = dtpNastere.Value;
                adminPersoane.AddPersoana(s);
                lblInfo.Text = "Contactul a fost adaugat";
                ResetControale();
            }
        }
        public bool UpdatePersoana(PersoaneContact studentActualizat)
        {
            ArrayList studenti            = GetPersoane();
            bool      actualizareCuSucces = false;

            try
            {
                //instructiunea 'using' va apela la final swFisierText.Close();
                //al doilea parametru setat la 'false' al constructorului StreamWriter indica modul 'overwrite' de deschidere al fisierului
                using (StreamWriter swFisierText = new StreamWriter(NumeFisier, false))
                {
                }
            }
            catch (IOException eIO)
            {
                throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message);
            }
            catch (Exception eGen)
            {
                throw new Exception("Eroare generica. Mesaj: " + eGen.Message);
            }

            return(actualizareCuSucces);
        }
Esempio n. 23
0
        private void btnCauta_Click(object sender, EventArgs e)
        {
            PersoaneContact s = adminPersoane.GetPersoane(txtNume.Text, txtPrenume.Text);//, txtNumarTelefon.Text, txtMail.Text);
            if (s != null)
            {
                lblInfo.Text = s.ConversieLaSir();
                foreach (var genu in bpgGrupGen.Controls)
                {
                    if (genu is CheckBox)
                    {
                        var genuBox = genu as CheckBox;
                        foreach (var gen in bpgGrupGen.Controls)

                            if (gen is CheckBox)
                            {
                                var chBox = gen as CheckBox;
                                chBox.Checked = true;
                            }
                                //genuBox.Checked = true;
                    }
                }
            }
            else
                lblInfo.Text = "Nu s-a gasit Persoana de contact";
            if (txtNume.Enabled == true && txtPrenume.Enabled == true)
            {
                txtNume.Enabled = false;
                txtPrenume.Enabled = false;

            //dezactivare butoane radio
            foreach(var button in gbdGrupContact.Controls)
                {
                    if(button is RadioButton)
                    {
                        var radioButton = button as RadioButton;
                        radioButton.Enabled = false;
                    }

                }
                foreach (var genu in bpgGrupGen.Controls)
                {
                    if (genu is CheckBox)
                    {
                        var genuBox = genu as CheckBox;
                        foreach (var gen in bpgGrupGen.Controls)

                            if (gen is CheckBox)
                            {
                                var chBox = gen as CheckBox;
                                chBox.Checked = false;
                            }
                        //genuBox.Checked = true;
                    }
                }

            }
            else
            {
                txtNume.Enabled = true;
                txtPrenume.Enabled = true;
                foreach (var button in gbdGrupContact.Controls)
                {
                    if (button is RadioButton)
                    {
                        var radioButton = button as RadioButton;
                        radioButton.Enabled = true;
                    }
                }
                foreach (var chk in bpgGrupGen.Controls)
                {
                    if (chk is CheckBox)
                    {
                        var chakBox = chk as CheckBox;
                        chakBox.Enabled = true;
                    }
                }
            }
        }
Esempio n. 24
0
 public bool UpdatePersoana(PersoaneContact s)
 {
     throw new Exception("Optiunea UpdateStudent nu este implementata");
 }
 public void AddPersoana(PersoaneContact s)
 {
     throw new Exception("Optiunea AddStudent nu este implementata");
 }