Files
SaveWizard_rewritten/ConfigEditor/MainForm.cs

31 lines
840 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.IO;
using System.Windows.Forms;
namespace ConfigEditor
{
public partial class MainForm: Form
{
public MainForm()
{
InitializeComponent();
}
private void открытьToolStripMenuItem_Click(object sender, System.EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog()
{
Title = "Выберите файл конфигурации",
Filter = "Файл *.json|*.json",
Multiselect = false
};
if (ofd.ShowDialog() == DialogResult.OK)
richTextBox1.Text = File.ReadAllText(ofd.FileName);
}
private void закрытьToolStripMenuItem_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
}
}