private void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { MissionForm missionForm = MissionForm.CreateInstrance(); missionForm.ShowMission(e.ClickedItem.Text, currentPlace); missionForm.Show(); }
/// <summary> /// 单例模式 /// </summary> /// <returns></returns> public static MissionForm CreateInstrance() { if (frm == null || frm.IsDisposed) { frm = new MissionForm(); } return(frm); }