/// <summary> /// 打开程序编辑界面 /// </summary> private void onLoadProgramForm() { SPIProgramForm form = SPIProgramForm.GetInstance(); form.Dock = DockStyle.Fill; spDivide.Panel2.Controls.Clear(); spDivide.Panel2.Controls.Add(form); form.OnFirstLoadOnMainform(); }
public static SPIProgramForm GetInstance() { isFirstLoad = false; if (singleProForm == null) { singleProForm = new SPIProgramForm(); isFirstLoad = true; } return(singleProForm); }