Пример #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();
        }
Пример #2
0
        public FrmCollectionDetails(FrmHomepage parent, String collectionId)
        {
            InitializeComponent();

            this.parent = parent;
            tableLayoutPanel2.SetColumnSpan(txt_address, 3);

            db = new SignChatDB();
            mySignCollection = db.GetSignCollection(collectionId);
            mySigns          = db.GetSigns(collectionId);
            myOrganisation   = db.GetOrganisation(mySignCollection.organisationId);

            SetForm();
            editMode = false;
        }