public void SaveData()
        {
            var list = new List<LEDScreen>();
            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                try
                {
                    var model = new LEDScreen();

                    var id = 0;
                    int.TryParse(row.Cells["ID"].Value.ToString(), out id);
                    model.ID = id;

                    var width = 0;
                    int.TryParse(row.Cells["Width"].Value.ToString(), out width);
                    model.Width = width;

                    var height = 0;
                    int.TryParse(row.Cells["Height"].Value.ToString(), out height);
                    model.Height = height;

                    list.Add(model);
                }
                catch { }
            }
            DataManager.Save(list);
        }
        private void AddRow(LEDScreen model)
        {
            var rowIndex = dataGridView1.Rows.Add();
            var row = dataGridView1.Rows[rowIndex];

            row.Cells["ID"].Value = model.ID;
            row.Cells["Width"].Value = model.Width;
            row.Cells["Height"].Value = model.Height;

            dataGridView1.CurrentCell = row.Cells[0];
            dataGridView1.BeginEdit(false);
        }