예제 #1
0
 private void sidebarExportButton_Click(object sender, EventArgs e)
 {
     DbCommunication db = new DbCommunication();
     ExportWindow exp = new ExportWindow(1);
     //exp.grid= meranie aktualne
 }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataMerania.SelectedCells.Count == 1)
            {
                ExportWindow exp = new ExportWindow((int)dataMerania.SelectedCells[0].Value);
                exp.ShowDialog();
            }

            else
            {
                int[] pom=new int[dataMerania.SelectedCells.Count];
                for (int i = 0; i < dataMerania.SelectedCells.Count; i++)
                {
                    pom[i] = (int)dataMerania.SelectedCells[i].Value;
                }

                ExportWindow exp = new ExportWindow(pom);
                exp.ShowDialog();
            }
        }