Question: Document The Following C# Windows Form Code from Visual Studio using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using
Document The Following C# Windows Form Code from Visual Studio
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
namespace MostrarConsulta { public partial class MostrarConsultaForm : Form { public MostrarConsultaForm() { InitializeComponent(); }
private void titlesBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.titlesBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.booksDataSet);
}
private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'booksDataSet.Titles' table. You can move, or remove it, as needed. this.titlesTableAdapter.Fill(this.booksDataSet.Titles); this.QueriesComboBox.SelectedIndex = 0; }
private void QueriesComboBox_SelectedIndexChanged(object sender, EventArgs e) { switch (QueriesComboBox.SelectedIndex) { case 0: titlesTableAdapter.Fill(this.booksDataSet.Titles); break; case 1: titlesTableAdapter.FillByCopy2006(this.booksDataSet.Titles); break;
case 2: titlesTableAdapter.FillWithVisualBooks(booksDataSet.Titles); break;
case 3: titlesTableAdapter.FillWithCopyright2010(booksDataSet.Titles); break; case 4: titlesTableAdapter.FillWithCPP(booksDataSet.Titles); break;
case 5: titlesTableAdapter.FillWithSortTitle(booksDataSet.Titles); break;
} }
private void btnSalir_Click(object sender, EventArgs e) { this.Close(); }
private void btnRefreshData_Click(object sender, EventArgs e) { this.titlesTableAdapter.Fill(this.booksDataSet.Titles); this.QueriesComboBox.SelectedIndex = 0; }
private void btnEdit_Click(object sender, EventArgs e) { Form editForm = new EditForm(); editForm.Show(); } } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
