Esempio n. 1
0
        public SprControls()
        {
            fcm = new FormControlManager();
            InitializeComponent();
            newDBcon = new SprDbConnect("spr_user_controls");
            dgControls.DataSource                  = newDBcon.GetDataTable("spr_user_controls");
            dgControls.Columns[0].HeaderText       = "Код";
            dgControls.Columns[0].Width            = 50;
            dgControls.Columns[0].DataPropertyName = "id";
            dgControls.Columns[0].Visible          = false;
            dgControls.Columns[1].HeaderText       = "Наименование формы";
            dgControls.Columns[1].Width            = 100;
            dgControls.Columns[1].DataPropertyName = "name_form";
            dgControls.Columns[1].Visible          = false;

            dgControls.Columns[2].HeaderText       = "Наименование системное";
            dgControls.Columns[2].Width            = 180;
            dgControls.Columns[2].DataPropertyName = "name";
            dgControls.Columns[2].Visible          = false;

            dgControls.Columns[3].HeaderText       = "Наименование элемента";
            dgControls.Columns[3].Width            = 150;
            dgControls.Columns[3].DataPropertyName = "name_rus";

            dgControls.Columns[4].HeaderText       = "Описание";
            dgControls.Columns[4].Width            = 150;
            dgControls.Columns[4].AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            dgControls.Columns[4].DataPropertyName = "opisanie";
        }
Esempio n. 2
0
        private void SetRights()
        {
            FormControlManager fcm = new FormControlManager();

            fcm.SetFormControlStatus(this);
//            this.Update();
        }