Ejemplo n.º 1
0
        private void UpdateInfo()
        {
            signcollection sc = new signcollection
            {
                collectionId       = mySignCollection.collectionId,
                password           = txt_password.Text,
                name               = txt_collectionName.Text,
                contactPerson      = txt_contactPerson.Text,
                contactPersonEmail = txt_contactPersonEmail.Text,
                contactPersonTel   = txt_contactPersonTel.Text,
                contactPersonTitle = txt_contactPersonTitle.Text
            };

            db.UpdateSignCollection(sc);

            organisation org = new organisation
            {
                id      = myOrganisation.id,
                name    = txt_organisation.Text,
                email   = txt_orgEmail.Text,
                address = txt_address.Text,
                tel     = txt_orgTel.Text
            };

            db.UpdateOrganisation(org);

            mySignCollection = db.GetSignCollection(mySignCollection.collectionId);
            mySigns          = db.GetSigns(mySignCollection.collectionId);
            myOrganisation   = db.GetOrganisation(mySignCollection.organisationId);
            this.SetForm();
        }
        private void UpdateDatabase()
        {
            organisation org = new organisation
            {
                id      = myOrganisation.id,
                name    = txt_organisation.Text,
                email   = txt_orgEmail.Text,
                tel     = txt_orgTel.Text,
                address = txt_address.Text
            };

            db.UpdateOrganisation(org);
        }