private void Export_Cell_List_Button_Click(object sender, RoutedEventArgs e) { if (fileDirectory == null) { return; } if (!Regex.IsMatch(json.name, outputPattern)) { System.Windows.MessageBox.Show("你的list的name不要加各种垃圾符号"); return; } JsonHelp.ListToFile(json, fileDirectory); }