/// <summary>
 /// 启动模板窗体激活、新建事件
 /// </summary>
 /// <param name="editfrom">FrmEditfrom(注:待激活、新建的模板窗体实例)</param>
 public static void ActiveFromEvent(FrmEditFrm editfrom)
 {
     try
     {
         //触发模板激活、新建事件
         ActiveFrom(editfrom, EditActiveTypeInfo.ActiveEditFrom);
     }
     catch { }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 编辑模板
        /// </summary>
        private void EditItem_SelectedIndexChanged(object sender, EventArgs e)
        {
            editfrom                  = new FrmEditFrm(EditItem.SelectedItem.ToString());
            editfrom.Dock             = DockStyle.Fill;
            editfrom.Text             = EditItem.SelectedItem.ToString();
            editfrom.ControlMouse    += new FrmEditFrm.ActiveMouse(editfrom_ControlMouse);
            editfrom.ActiveEditMouse += new FrmEditFrm.EditMouse(editfrom_ActiveEditMouse);

            TabPage edittabpage = new TabPage();

            edittabpage.AutoScroll              = false;
            edittabpage.BorderStyle             = System.Windows.Forms.BorderStyle.FixedSingle;
            edittabpage.Location                = new System.Drawing.Point(4, 24);
            edittabpage.Name                    = editfrom.Text;
            edittabpage.Text                    = editfrom.Text;
            edittabpage.Padding                 = new System.Windows.Forms.Padding(3);
            edittabpage.Size                    = new Size(editfrom.P_bgimg.Width, editfrom.P_bgimg.Height);
            edittabpage.TabIndex                = 0;
            edittabpage.UseVisualStyleBackColor = true;

            edittabpage.Controls.Add(editfrom);
            Tab_editlist.Controls.Add(edittabpage);
            Tab_editlist.SelectedIndex = Tab_editlist.TabPages.Count - 1;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 模板对象激活或新建|属性列表对象更换控件源
 /// </summary>
 /// <param name="editfrom">编辑模板实例</param>
 /// <param name="activetype"></param>
 void EditEventReferences_ActiveFrom(FrmEditFrm editfrom, EditActiveTypeInfo activetype)
 {
     EditName  = editfrom.Text;//更换列表数据源
     this.Text = EditName;
     FrmEditControlList_Load(null, null);
 }
 /// <summary>
 /// 启动鹰眼窗体切换事件
 /// </summary>
 /// <param name="editfrom">FrmEditfrom(注:鹰眼窗体切换的模板窗体实例)</param>
 public static void ActiveEalLookFromEvent(FrmEditFrm editfrom)
 {
     //触发鹰眼窗体切换事件(注:切换鹰眼的底图或鹰眼的角度)
     ActiveEagLookFrom(editfrom);
 }