Esempio n. 1
0
        private void xmlImportJson_Click(object sender, EventArgs e)
        {
            EnableControls(false);
            _importJson.ShowDialog();
            if (_importJson.XmlImported != null)
            {
                TxtXml.Text = _importJson.XmlImported;
                TxtXml.RefreshUndoRedoButton();
            }

            ClearAllSelections(xmlImportJson.GetCurrentParent());
            EnableControls(true);
        }
Esempio n. 2
0
        private void BwMiniXml_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                TxtOutput.Text = e.Error.Message;
                TxtOutput.RefreshUndoRedoButton();
            }
            else
            {
                TxtXml.Text = e.Result?.ToString();
                TxtXml.RefreshUndoRedoButton();
            }

            ClearAllSelections(XmlMiniButton.GetCurrentParent());
            EnableControls(true);
        }