Пример #1
0
        //CREATES A NEW FORMAT
        private void newFormatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewFormatStructure newFormat = new NewFormatStructure("F");

            if (newFormat.ShowDialog() == DialogResult.OK)
            {
                //Inicio Modificación - FernandoAMartinez - 17/03/2020
                //Formats.Add(newFormat.Format);
                //dgFormats.Rows.Add(newFormat.Format.Id, newFormat.Format.Name);
                BindingFromats.Add(newFormat.Format);
                //Fin Modificación - FernandoAMartinez - 17/03/2020
            }
        }
Пример #2
0
        //CREATE A NEW STRUCTURE FOR THE SELECTED FORMAT
        private void openFormatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewFormatStructure newStructure = new NewFormatStructure("S");

            if (newStructure.ShowDialog() == DialogResult.OK)
            {
                if (SelectedFormat.Structures == null)
                {
                    SelectedFormat.Structures = new List <FormatFileGenerator.Structure>();
                }

                //Inicio Modificación - FernandoAMartinez - 17/03/2020
                BindingStructures.Add(newStructure.Structure);
                //SelectedFormat.Structures = (List<FormatFileGenerator.Structure>)BindingStructures.List;
                SelectedFormat.Structures.Add(newStructure.Structure);
                //dgStructures.Rows.Add(newStructure.Structure.Id, newStructure.Structure.Name, newStructure.Structure.Type);
                //Fin Modificación - FernandoAMartinez - 17/03/2020
            }
        }