internal static void ShowXmlEditor(Form1 form) { CustomRichTextBox pageTextBox = ProgramUtil.GetPageTextBox(form.pagesTabControl.SelectedTabPage); if (String.IsNullOrEmpty(pageTextBox.Text)) { ShowInfoBox(form, LanguageUtil.GetCurrentLanguageString("TextEmpty", className)); return; } String error; if (!XmlValidator.Validate(form, false, ValidationType.Schema, null, out error)) { ShowAlertBox(form, error); return; } XmlEditor fileRename = new XmlEditor { Owner = form }; fileRename.InitializeForm(); fileRename.Show(form); }
private void TB_EDIT_Any_Click(object sender, RoutedEventArgs e) { XmlEditor _XMLEditor = new XmlEditor("Any"); _XMLEditor.Show(); }