private void BtnRepairList_Click(object sender, EventArgs e) { RepairLineDataBase rldb = new RepairLineDataBase(); rldb.Show(); this.Hide(); }
private void UpdateRepairsToolStripMenuItem_Click(object sender, EventArgs e) { //Same window as the add repair window, difference is listBox with Client name and Phone model previewed RepairLineDataBase child2 = new RepairLineDataBase(); child2.MdiParent = this; child2.Show(); }
private void RepairDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { RepairLineDataBase child6 = new RepairLineDataBase(); child6.MdiParent = this; conn = new SqlConnection(conStrRepair); conn.Open(); string viewAll = "SELECT * FROM RepairTable"; cmd = new SqlCommand(viewAll, conn); adp = new SqlDataAdapter(); adp.SelectCommand = cmd; adp.Fill(ds, "Repair"); child6.dataGridView1.DataSource = ds; child6.dataGridView1.DataMember = "Repair"; conn.Close(); child6.Show(); }