Esempio n. 1
0
        private void UpdateComboBoxSelsovet()
        {
            var commandServer = new CommandServer();

            comboBox1.Items.Clear();
            comboBox1.DataSource = commandServer.ComboBoxList(@"select Selsovet from Selsovet order by Selsovet", true);
        }
Esempio n. 2
0
        private void comboBox()
        {
            var commandServer = new CommandServer();

            radDropDownList1.Invoke(new MethodInvoker(delegate()
            {
                radDropDownList1.DataSource = commandServer.ComboBoxList(@"select ФИО
                        from spezialistView(2,0)  order by [ФИО]", true);
            }));

            radDropDownList2.Invoke(new MethodInvoker(delegate()
            {
                radDropDownList2.DataSource = commandServer.ComboBoxList(@"select ФИО
                        from spezialistView(2,0)  order by [ФИО]", true);
            }));
        }
Esempio n. 3
0
        public void LoadDrop()
        {
            var commandServer = new CommandServer();

            radDropDownList1.DataSource = commandServer.ComboBoxList(@"select convert(nvarchar, dat, 20) 
                from One_soc order by dat desc", false);
        }