コード例 #1
0
        //Заполнение комбо-бокса
        private void cbUFill()
        {
            DBConnection2 connection = new DBConnection2();

            connection.UslugiFill();
            cbUsluga_ID.ItemsSource       = connection.dtUsluga.DefaultView;
            cbUsluga_ID.SelectedValuePath = "ID_Usluga";
            cbUsluga_ID.DisplayMemberPath = "Name_Of_Usluga";
        }
コード例 #2
0
        //Заполнение датагрида
        private void dgFill(string qr)
        {
            DBConnection2 connection = new DBConnection2();

            DBConnection2.qrUsluga = qr;
            connection.UslugiFill();
            dgUslugi.ItemsSource           = connection.dtUsluga.DefaultView;
            dgUslugi.Columns[0].Visibility = Visibility.Collapsed;
        }