private void ListBox_CustomJava_SelectionChanged(object sender, SelectionChangedEventArgs e) { //自动保存 EditorData.SaveSDKConfig(EditorData.CurrentSDKConfig); ListBox lb = sender as ListBox; string Name = (string)lb.SelectedValue; for (int i = 0; i < customJavaList.Count; i++) { if (customJavaList[i].key == Name) { currentJavaContent = customJavaList[i]; } } TextBox_ClassTemplate.Text = currentJavaContent.value; }
private void Button_ClickSave(object sender, RoutedEventArgs e) { EditorData.SaveSDKConfig(EditorData.CurrentSDKConfig); MessageBox.Show("保存成功"); }