//Добавление поставщика private void bt_Insert_Supplier_Click(object sender, RoutedEventArgs e) { if (tb_Surname_of_Supplier.Text.ToString() == "" | tb_Name_of_Supplier.Text.ToString() == "" | tb_Middle_Name_of_Supplier.Text.ToString() == "" | tb_Sires_Document.Text.ToString() == "" | tb_Number_Document.Text.ToString() == "" | cb_Supply_Contract_Info.Text.ToString() == "") { MessageBox.Show("Поля не заполнены!" + "\n Повторите попытку!", "Сервис+", MessageBoxButton.OK, MessageBoxImage.Warning); } else { procedures.Supplier_Insert(tb_Surname_of_Supplier.Text.ToString(), tb_Name_of_Supplier.Text.ToString(), tb_Middle_Name_of_Supplier.Text.ToString(), tb_Sires_Document.Text.ToString(), tb_Number_Document.Text.ToString(), Convert.ToInt32(cb_Supply_Contract_Info.SelectedValue.ToString())); dgFill(QR); Supplier ps2 = new Supplier(); ps2.Show(); Hide(); } }