コード例 #1
0
        private void btnUpdateClick(object sender, RoutedEventArgs e)
        {
            taModes.Update(dsMode);
            taModes = new teamxboxliveDataSetTableAdapters.modes_jeuxTableAdapter();
            taModes.Fill(dsMode);

            var modeQuery = from mo in dsMode where mo.mode_id == modeId select mo; 
            dtGridModes.ItemsSource = modeQuery.ToArray();
            Console.WriteLine("Update !");
        }
コード例 #2
0
        public UserControlModifMode(int id)
        {
            InitializeComponent();
            taModes = new teamxboxliveDataSetTableAdapters.modes_jeuxTableAdapter();
            dsMode = new teamxboxliveDataSet.modes_jeuxDataTable();
            taModes.Fill(dsMode);
            modeId = id;

            var modeQuery = from mo in dsMode where (mo.mode_id == id) select mo;
            dtGridModes.ItemsSource = modeQuery.ToArray();

        }