Beispiel #1
0
 /// <summary>
 /// 编辑模板
 /// </summary>
 private void EditItem_SelectedIndexChanged(object sender, EventArgs e)
 {
     editfrom                  = new FrmEditfrom(EditItem.SelectedItem.ToString());
     editfrom.Text             = EditItem.SelectedItem.ToString();
     editfrom.ControlMouse    += new FrmEditfrom.ActiveMouse(editfrom_ControlMouse);
     editfrom.ActiveEditMouse += new FrmEditfrom.EditMouse(editfrom_ActiveEditMouse);
     editfrom.Show(DP_dock);
 }
 /// <summary>
 /// 启动模板窗体激活、新建事件
 /// </summary>
 /// <param name="editfrom">FrmEditfrom(注:待激活、新建的模板窗体实例)</param>
 public static void ActiveFromEvent(FrmEditfrom editfrom)
 {
     try
     {
         //触发模板激活、新建事件
         ActiveFrom(editfrom, EditActiveTypeInfo.ActiveEditFrom);
     }
     catch { }
 }
Beispiel #3
0
 /// <summary>
 /// 模板对象激活或新建|属性列表对象更换控件源
 /// </summary>
 /// <param name="editfrom">编辑模板实例</param>
 /// <param name="activetype"></param>
 void EditEventReferences_ActiveFrom(FrmEditfrom editfrom, EditActiveTypeInfo activetype)
 {
     EditName  = editfrom.Text;//更换列表数据源
     this.Text = EditName;
     FrmEditControlList_Load(null, null);
 }
 /// <summary>
 /// 启动鹰眼窗体切换事件
 /// </summary>
 /// <param name="editfrom">FrmEditfrom(注:鹰眼窗体切换的模板窗体实例)</param>
 public static void ActiveEalLookFromEvent(FrmEditfrom editfrom)
 {
     //触发鹰眼窗体切换事件(注:切换鹰眼的底图或鹰眼的角度)
     ActiveEagLookFrom(editfrom);
 }