public static SPIRunForm GetInstance() { if (singleRunForm == null) { singleRunForm = new SPIRunForm(); } return(singleRunForm); }
/// <summary> /// 打开运行界面 /// </summary> private void onLoadRunForm() { SPIRunForm form = SPIRunForm.GetInstance(); form.Dock = DockStyle.Fill; spDivide.Panel2.Controls.Clear(); spDivide.Panel2.Controls.Add(form); }