private void Refresh() { bind.Clear(); foreach (BaseInfoType v in file.Infos()) { bind.Add(new Context(v)); } //dataGrid.ItemsSource = null; //dataGrid.ItemsSource = bind; //label1.Content = dic[pathC]; }