private void Window_Loaded(object sender, RoutedEventArgs e) { FontLoading floading = new FontLoading(fmamily); floading.Owner = this; floading.FormCloseEvent += new FontLoading.FormCloseHandler(FontLoading_Closed); floading.ShowDialog(); //FontListBox.ItemsSource = fontpathnamelist; //FontListBox.ItemsSource = fontlistkun(); }
private void FontLoading_Closed(FontLoading sender, EventArgs e) { FontListBox.ItemsSource = sender.FontPathNamelist; FontListBox.SelectedIndex = 0; }