> {+ +;. Rows.Add (); (int j = 0; j <7; j + +)
{. Rows [i]. Cells [j]. Value = iReader [j]. ToString ();
}
}. Close ();
} (radioButton3.Checked == true)
{comand = new SqlCommand (@ "SELECT * FROM Books WHERE (Автор LIKE '%" + text + "%')", cls.Conn); iReader = comand.ExecuteReader (CommandBehavior.CloseConnection); (iReader.Read ())
{+ +;. Rows.Add (); (int j = 0; j <7; j + +)
{. Rows [i]. Cells [j]. Value = iReader [j]. ToString ();
}
}. Close ();
}. Enabled = true;
}
} void button4_Click (object sender, EventArgs e)// експорт в Ексель
{(dataGridView2);
} void button3_Click (object sender, EventArgs e)// видалити книгу
{. frm4 = new Form4 ();. frm4.ShowDialog ();
} void удалітьКнігуToolStripMenuItem_Click (object sender, EventArgs e)
{. frm4 = new Form4 ();. frm4.ShowDialog ();
} void подключениеКБазеToolStripMenuItem_Click (object sender, EventArgs e)
{. frm1 = new Form1 ();. frm1.ShowDialog ();
} void добавітьЖанрToolStripMenuItem_Click (object sender, EventArgs e)
{. frm5 = new Form5 ();. frm5.ShowDialog ();
} void экспортРезультатовВExcelToolStripMenuItem1_Click (object sender, EventArgs e)
{(dataGridView2);
} void удалітьЖанрToolStripMenuItem_Click (object sender, EventArgs e)
{. frm6 = new Form6 ();. frm6.ShowDialog ();
} void оПрограммеToolStripMenuItem_Click (object sender, EventArgs e)
{. frm7 = new Form7 ();. frm7.ShowDialog ();
} void оПрограммеToolStripMenuItem1_Click (object sender, EventArgs e)
{. frm7 = new Form7 ();. frm7.ShowDialog ();
}
}
}
Form3.CS:
using
{partial class Form3: Form
{Conn; Form3 ()
{();
} void Form3_Load (object sender, EventArgs e)
{. Conn = new SqlConnection (cls.ConnectionString);. Conn.Open (); comm = new SqlCommand (@ "select * from Genre", cls.Conn); iReader = comm. ExecuteReader (CommandBehavior.CloseConnection); (iReader.Read ())
{. Items.Add (iReader [0]. ToString ());
}. Close ();
} void button2_Click (object sender, EventArgs e)// відміна
{. Text =...