void LoadData()
        {
            var context = new Context.voenniy_okrugEntities();

            LoadSluzhaschie();
            LoadPodrazdelenie(context);
            LoadObiedinenie(context);
            LoadSooruzhenie();
            LoadBoevayaTehnika(context);
            LoadTransportnayaTehnika(context);
        }
        private void LoadData()
        {
            var context = new Context.voenniy_okrugEntities();

            LoadSluzhaschie();
            LoadChasti(context);
            LoadStarshiySluzhaschiy(context);
            LoadSooruzhenie();
            LoadBoevayaTehnika(context);
            LoadTransportnayaTehnika(context);
            LoadObiedinenie(context);
            LoadSostavObiedineniy(context);
        }
        private void LoadObiedinenie(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatObiedinenie();
            //dgvOb.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                // dgvOb.Columns.Add(column);
            }

            lblSsPage.Text = "1";
        }
        private void LoadStarshiySluzhaschiy(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatStarshiySluzhaschiy();
            dgvSs.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvSs.Columns.Add(column);
            }

            lblSsPage.Text = "1";
        }
        private void LoadChasti(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatChasti();
            dgvCh.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvCh.Columns.Add(column);
            }

            lblChPage.Text = "1";
            var obiedineniya = context.Obiedinenie.ToList();
        }
        private void LoadTransportnayaTehnika(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatTransportnayaTehnika();
            dgvTt.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvTt.Columns.Add(column);
            }

            lblTtPage.Text = "1";
            var tipiTransportnoyTehnoki = context.Tip_transportnoy_tehniki.ToList();

            foreach (var ttt in tipiTransportnoyTehnoki)
            {
                cbTtType.Items.Add(ttt.nazvanie);
            }
        }
        private void LoadPodrazdelenie(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatPodrazdelenie();
            dgvPd.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvPd.Columns.Add(column);
            }

            lblPdPage.Text = "0";
            var tipiPodrazdeleniy = context.Tip_podrazdeleniya.ToList();

            foreach (var tp in tipiPodrazdeleniy)
            {
                cbPdType.Items.Add(tp.nazvanie);
            }
        }
        private void LoadSostavObiedineniy(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatSostavObiedineniy();
            dgvSob.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvSob.Columns.Add(column);
            }

            var obiedineniya = context.Obiedinenie.ToList();

            foreach (var tp in obiedineniya)
            {
                cbSobObiedinenie.Items.Add(tp.nazvanie);
            }

            lblSobPage.Text = "1";
        }
        private void LoadObiedinenie(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatObiedinenie();
            dgvOb.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvOb.Columns.Add(column);
            }

            lblObPage.Text = "0";

            var tipiObiedineniy = context.Tip_obiedineniya.ToList();

            foreach (var to in tipiObiedineniy)
            {
                cbObType.Items.Add(to.nazvanie);
            }
        }
        private void LoadBoevayaTehnika(Context.voenniy_okrugEntities context)
        {
            string[] columnNames = control.GetDgvFormatBoevayaTehnika();
            dgvBt.Columns.Clear();

            foreach (string columnName in columnNames)
            {
                System.Windows.Forms.DataGridViewTextBoxColumn column = new System.Windows.Forms.DataGridViewTextBoxColumn();
                column.HeaderText = columnName;
                dgvBt.Columns.Add(column);
            }

            lblBtPage.Text = "0";

            var tipiBoevoyTehniki = context.Tip_boevoy_tehniki.ToList();

            foreach (var tbt in tipiBoevoyTehniki)
            {
                cbBtType.Items.Add(tbt.nazvanie);
            }
        }