Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dateTimePicker1.Value <= dateTimePicker2.Value)
     {
         PrintDocs.Doc1PostExcel(dateTimePicker1.Value.ToString("yyyy-MM-dd"), dateTimePicker2.Value.ToString("yyyy-MM-dd"));
     }
     else
     {
         MessageBox.Show(dateTimePicker1.Value.ToString()); MessageBox.Show(dateTimePicker2.Value.ToString()); MessageBox.Show("Дата выбрана некорректно");
     }
 }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     PrintDocs.TitleListPrint(a);
 }
Exemplo n.º 3
0
 private void toolStripButton8_Click_2(object sender, EventArgs e)
 {
     PrintDocs.InsideOpis(Convert.ToInt32(DeloDG.CurrentRow.Cells[0].Value.ToString()));
 }