Exemplo n.º 1
0
        private void btnTimeLine_Click(object sender, EventArgs e)
        {
            //tablaTimeline
            foreach (DataGridViewRow item in tablaTimeline.Rows)
            {
                itemEst = new ItemsEstudio(
                    int.Parse(item.Cells["Numero"].Value.ToString()),
                    item.Cells["Nombre"].Value.ToString(),
                    item.Cells["Tipo"].Value.ToString()
                    );

                Console.WriteLine(item.Cells["Nombre"].Value.ToString());
                listaItemsEstudioA.Add(itemEst);
            }
            estudio = new Estudio(assets.ProjectName, assets.folderName, assets.txtNeutral.Text, listaItemsEstudioA);
            assets.mySerializer.Serialize(estudio, assets.folderName + "\\" + assets.ProjectName + ".xml");
            Console.WriteLine("Llamando Excel----" + assets.folderName, assets.ProjectName + "-Results");
            ExcelManipulator.createOAExcel(assets.folderName, assets.ProjectName + "-Results");
            DialogResult dialogResult = MessageBox.Show("Desea aplicar el estudio ahora mismo?", "Continuar", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                //do something
                StartEstudio estudioSiguiente = new StartEstudio(assets.folderName + "\\" + assets.ProjectName + ".xml");
                estudioSiguiente.Show();
                this.Dispose();
                assets.Dispose();
            }
            else if (dialogResult == DialogResult.No)
            {
                Application.Exit();
            }
        }
Exemplo n.º 2
0
 public void Save(String FilePath, String FileName)
 {
     ExcelManipulator.saveOA(this, FilePath, FileName);
 }