BackTerminal.frmBookStatus.Reload C# (CSharp) Méthode

Reload() public méthode

public Reload ( string ISBN ) : void
ISBN string
Résultat void
        public void Reload(string ISBN)
        {
            // testing...
            this.dataSet.particular_book.Clear();

            string sql = "select * from book_library_damaged where isbn=@ISBN";
            //sql = "select * from particular_book";
            this.bookLibraryDamagedTableAdapter.Fill(this.dataSet.book_library_damaged);
            this.bookLibraryDamagedTableAdapter.Adapter.SelectCommand.CommandText = sql;
            this.bookLibraryDamagedTableAdapter.Adapter.SelectCommand.Parameters.Clear();
            this.bookLibraryDamagedTableAdapter.Adapter.SelectCommand.Parameters.AddWithValue("@ISBN", ISBN);
            this.bookLibraryDamagedTableAdapter.Adapter.Fill(this.dataSet.book_library_damaged);
        }

Usage Example

Exemple #1
0
        private void ShowBookStatus()
        {
            frmBookStatus form = new frmBookStatus();

            form.Reload((string)dgvBook.SelectedRows[0].Cells[0].Value);
            form.ShowDialog();
            refreshDGV();
        }
All Usage Examples Of BackTerminal.frmBookStatus::Reload