Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     backgroundWorker1.RunWorkerAsync();
     this.classManager = new ClassManager();
     this.attManager   = new AttributManager();
 }
Esempio n. 2
0
        private void setDataAttributManager()
        {
            foreach (DataGridViewRow row in dataGridView2.Rows)
            {
                string nameTest = "";

                string typeTest = "";

                string nameInDb = "";

                Boolean primary = false;

                try
                {
                    typeTest = row.Cells[0].Value.ToString();
                    nameTest = row.Cells[1].Value.ToString();
                    nameInDb = row.Cells[2].Value.ToString();
                    primary  = Convert.ToBoolean(row.Cells[3].Value);

                    AttributManager att = new AttributManager(nameTest, typeTest, nameInDb, primary);
                    classManager.addAttributDb(att);
                }
                catch (Exception ex)
                {
                }
            }
        }