private void EnterBooks_Load(object sender, EventArgs e)
        {
            DB_Access acc = new DB_Access();
            DataTable dat = acc.getTable("ViewAuthor");

            txtBAuthor.DataSource    = dat;
            txtBAuthor.ValueMember   = "AuthorID";
            txtBAuthor.DisplayMember = "FirstName";
            DataTable dt = acc.getTable("ViewTopic");

            txtBTopic.DataSource    = dt;
            txtBTopic.ValueMember   = "TopicID";
            txtBTopic.DisplayMember = "Topic";
        }
Example #2
0
        private void Quotations_Load(object sender, EventArgs e)
        {
            DB_Access acc = new DB_Access();
            DataTable dat = acc.getTable("ViewAuthor");

            txtAuthor.DataSource    = dat;
            txtAuthor.ValueMember   = "AuthorID";
            txtAuthor.DisplayMember = "FirstName";
            DataTable dt = acc.getTable("ViewBooks");

            txtBook.DataSource    = dt;
            txtBook.ValueMember   = "Tittle";
            txtBook.DisplayMember = "Tittle";
        }