Beispiel #1
0
        /// <summary>
        /// 调用修改场景的面板
        /// </summary>
        /// <param name="tg">0表示添加、1表示修改、2表删除</param>
        private void loadSenceEditFrom(int tg)
        {
            this.Tg = tg;
            AddScript addScript = new AddScript();

            addScript.Call = creatScript;
            addScript.Tg   = tg;
            if (tg == 1)
            {//修改,传过去场景id
                script sc = (script)this.contextMenuStrip1.Tag;
                addScript.Scenc = sc;
            }
            // 创建脚本面板
            addScript.ShowDialog();
        }
Beispiel #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            AddScript addScript = new AddScript();

            addScript.ShowDialog();
        }