private void MainForm_Load(object sender, EventArgs e) { var task = new Task((() => { //TCadProxy.OpenCad(_base64str); TCadProxy.Test(); })); task.Start(); }
public static void Test() { var procInfo = new ProcInfo(); procInfo.FileMd5 = TUtils.ComputeMd5Hash(@"E:\BimSrv2\gisserver\webapps\gis\1.dwg"); procInfo.FileName = "1.dwg"; procInfo.FileUrl = "http://127.0.0.1:8080/gis/1.dwg"; var jsonstr = JsonConvert.SerializeObject(procInfo); var base64str = TUtils.EncodeForProcInfo(jsonstr); TCadProxy.OpenCad(base64str); }