//打开归档界面 private void Hyperlink_Click(object sender, RoutedEventArgs e) { List <Activity> activities = dbUtill.GetIsFiles(); if (activities.Count > 0) { IsFileWin isFileWin = new IsFileWin(); isFileWin.ShowDialog(); if (isFileWin.DialogResult == false) { Init(); } } else { BlankWin blankWin = new BlankWin(); blankWin.ShowDialog(); } }
public void Init() { List <Activity> list = dbUtill.GetIsFiles(); activity_panel.ItemsSource = list; }