private void editLanguageButton_Click(object sender, EventArgs e) { var lp = new LocalizationProperties(); var name = new CultureInfo( languagesComboBox.GetItemText(languagesComboBox.SelectedItem).Split('-')[1].Trim()).Name; var jsonEditorDialog = new JsonEditorDialog {LanguageContent = Serializer.Serialize(lp), CultureName = name}; jsonEditorDialog.ShowDialog(this); }
private void editLanguageButton_Click(object sender, EventArgs e) { var lp = new LocalizationProperties(); var name = new CultureInfo( languagesComboBox.GetItemText(languagesComboBox.SelectedItem).Split('-')[1].Trim()).Name; var jsonEditorDialog = new JsonEditorDialog { LanguageContent = Serializer.Serialize(lp), CultureName = name }; jsonEditorDialog.ShowDialog(this); }