Esempio n. 1
0
 public void Reload()
 {
     types.ListChanged -= types_ListChanged;
     toDelete.Clear();
     toSave.Clear();
     types.Clear();
     converter.toClientType(this.service.readAll())
     .ForEach(n => types.Add(n));
     types.ListChanged += types_ListChanged;
 }
Esempio n. 2
0
        public void Reload()
        {
            try
            {
                types.ListChanged -= types_ListChanged;

                toDelete.Clear();
                toSave.Clear();
                types.Clear();
                converter.toClientType(this.service.readAll())
                .ForEach(n => types.Add(n));
                types.ListChanged += types_ListChanged;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }