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 yunneiWCS { public partial class TestForm : Form { public TestForm() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { var bb = TaskNoHelper.CreatePlcTaskIdForSrmTaskPublic(1); var zz = bb; } private void button2_Click(object sender, EventArgs e) { string toplace = ""; try { int positionType = 2; toplace = Form1.findStorage(positionType); } catch (Exception) { toplace = ""; } } } }