TestForm.cs
(完整代码) 922Busing Newtonsoft.Json;
using PGMHelper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OpenSEES_Json
{
public partial class TestForm : Form
{
public TestForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//初始化文件路径
string filePath = string.Empty;
//选择文件
if (!WilsonHelper.OpenFile("文本文档(*.txt)|*.txt|所有文件(*.*)|*.*",
ref filePath))
return;
var jsonobj = OpenSEESInfomation.FromJson(filePath);
txtResult.Text = JsonConvert.SerializeObject(jsonobj);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
