private void Dgv_collection_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            String collectionId = currentList.ElementAt(e.RowIndex).collectionId;

            FrmCollectionDetails frm = new FrmCollectionDetails(parent, collectionId);

            parent.ForwardTo(frm);
        }
        private void Button2_Click(object sender, EventArgs e)
        {
            if (!ValidateForm())
            {
                return;
            }

            // New sign collection
            signcollection sc = new signcollection
            {
                collectionId       = txt_collectionId.Text,
                password           = txt_password.Text,
                name               = txt_collectionName.Text,
                contactPerson      = txt_contactPerson.Text,
                contactPersonEmail = txt_contactPersonEmail.Text,
                contactPersonTel   = txt_contactPersonTel.Text,
                contactPersonTitle = txt_contactPersonTitle.Text,
                organisationId     = organisations.ElementAt(cbBox_organisation.SelectedIndex).id
            };

            // New organisation
            if (ckBox_newOrg.Checked)
            {
                organisation org = new organisation
                {
                    name    = txt_organisation.Text,
                    email   = txt_orgEmail.Text,
                    address = txt_address.Text,
                    tel     = txt_orgTel.Text
                };
                sc.organisationId = db.NewOrganisation(org);
            }

            db.NewCollection(sc);

            // Change page
            FrmCollectionDetails frm = new FrmCollectionDetails(parent, sc.collectionId);

            parent.ReplaceWith(frm);
        }