Exemplo n.º 1
0
        private void SaveWatchRefData()
        {
            var newWatchRefs = (
                from DataGridViewRow row
                in WatchRefData.Rows
                where !row.IsNewRow
                select row.Cells[0].Value.ToString()
                into watchRefNewName
                select new WatchRef {
                name = watchRefNewName
            }).ToList();

            ApplicationData.WatchRefs.Clear();

            foreach (var i in newWatchRefs)
            {
                ApplicationData.AddWatchRef(i);
            }
        }