private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            FormRegulationsAddEdit frmAddRegulation = new FormRegulationsAddEdit();

            frmAddRegulation.ShowDialog();
            this.regulationsTableAdapter.Fill(this.accessControlSystemDataSet.Regulations);
            if (id_room != -1)
            {
                RegBind();
            }
        }
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            FormRegulationsAddEdit frmEditRegulation = new FormRegulationsAddEdit(
                Convert.ToInt32(((DataRowView)this.regulationsBindingSource.Current).Row["ID_regulation"].ToString()),
                ((DataRowView)this.regulationsBindingSource.Current).Row["Days_of_week"].ToString(),
                ((DataRowView)this.regulationsBindingSource.Current).Row["Access_time_from"].ToString(),
                ((DataRowView)this.regulationsBindingSource.Current).Row["Access_time_to"].ToString(),
                ((DataRowView)this.regulationsBindingSource.Current).Row["Description"].ToString());

            frmEditRegulation.ShowDialog();
            this.regulationsTableAdapter.Fill(this.accessControlSystemDataSet.Regulations);
            if (id_room != -1)
            {
                RegBind();
            }
        }