Пример #1
0
        /// <summary>
        /// 记载内容编辑页的公共方法
        /// </summary>
        /// <param name="tag">标记,0代表添加;1表示修改;2代表插入</param>
        private void loadAddScriptContent(int tag)
        {
            AddScriptContent addcon = new AddScriptContent();

            addcon.Call   += callAddRW;
            addcon.Senceid = this.Senceid;
            if (tag == 1)
            {
                //传入修改的模型
                int       index = (int)this.contextMenuStrip1.Tag;
                TaskModel task  = new TaskModel();
                task            = this.ListTask_pub[index - 1];
                addcon.Taskmode = task;
            }
            addcon.Tag1 = tag;
            addcon.ShowDialog();
        }
Пример #2
0
        private void loadAddScriptContent()
        {
            AddScriptContent addcon = new AddScriptContent();

            addcon.ShowDialog();
        }