private void allOrdersByClient_Click(object sender, EventArgs e) { var query = "Select * from Клиент as c join Заказ as z on c.[Код клиента] = z.[Код клиента] where c.[Код клиента] ="; var title = "Справка о всех заказах заданного клиента"; var zakazWithClientId = new QueryWithCondition(query, title); zakazWithClientId.Show(); this.Close(); }
private void zakazWithZakazId_Click(object sender, EventArgs e) { var query = "select * from Заказ where [Код заказа] ="; var title = "Справка по заданному заказу"; var zakazWithZakazId = new QueryWithCondition(query, title); zakazWithZakazId.Show(); this.Close(); }