Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. public partial class GenerarIndicadores : Form
  2. {
  3. unyrepDataSetTableAdapters.cargadatosTableAdapter ta_cargadatos;
  4. public GenerarIndicadores()
  5. {
  6. InitializeComponent();
  7. ta_cargadatos = new unyrepDataSetTableAdapters.cargadatosTableAdapter();
  8. int total = ta_cargadatos.GetData().Count;
  9. dateTimePicker1.MinDate = ta_cargadatos.GetData()[0].fechaInicio;
  10. dateTimePicker2.MinDate = ta_cargadatos.GetData()[0].fechaInicio;
  11. dateTimePicker1.MaxDate = ta_cargadatos.GetData()[total - 1].fechaTermino;
  12. dateTimePicker2.MaxDate = ta_cargadatos.GetData()[total - 1].fechaTermino;
  13. }
  14.  
  15. public void button1_Click(object sender, EventArgs e)
  16. {
  17. new GenerarIndicadorGrupo().ShowDialog();
  18. this.aux_view5TableAdapter.FillTest(this.unyrepDataSet.aux_view5, dateTimePicker1.Value, dateTimePicker2.Value);
  19.  
  20. }
  21. private void button2_Click(object sender, EventArgs e)
  22. {
  23. new GenerarIndicadorProveedor().ShowDialog();
  24. this.aux_view5TableAdapter.FillTest(this.unyrepDataSet.aux_view5, dateTimePicker1.Value, dateTimePicker2.Value);
  25.  
  26. }
  27.  
  28. private void button3_Click(object sender, EventArgs e)
  29. {
  30. new GenerarIndicadorObras().ShowDialog();
  31. this.aux_view5TableAdapter.FillTest(this.unyrepDataSet.aux_view5, dateTimePicker1.Value, dateTimePicker2.Value);
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement