Ejemplo n.º 1
0
        private void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            MissionForm missionForm = MissionForm.CreateInstrance();

            missionForm.ShowMission(e.ClickedItem.Text, currentPlace);
            missionForm.Show();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 单例模式
 /// </summary>
 /// <returns></returns>
 public static MissionForm CreateInstrance()
 {
     if (frm == null || frm.IsDisposed)
     {
         frm = new MissionForm();
     }
     return(frm);
 }