/// <summary>
 /// 初始化模板列表
 /// </summary>
 private void FrmEditLeftList_Load(object sender, EventArgs e)
 {
     //获取模板名称集合
     foreach (object i in EditTemplateInfo.ReturnEditItemName())
     {
         //实例化模板集合中的子列表对象
         CustomEditList editlistchild = new CustomEditList(EditTemplateInfo.GetEditImg((i as string)));
         editlistchild.Tag  = (i as string);//存储当前子对象所对应的模板名称
         editlistchild.Dock = DockStyle.Top;
         P_editlist.Controls.Add(editlistchild);
     }
 }
Exemple #2
0
 /// <summary>
 /// 窗体加载时|加载一些模板信息列表
 /// </summary>
 private void FrmPanel_Load(object sender, EventArgs e)
 {
     //设置选择模板下拉列表项
     for (int i = 0; i < EditTemplateInfo.ReturnEditItemName().Count; i++)
     {
         EditItem.Items.Add(EditTemplateInfo.ReturnEditItemName()[i].ToString());
     }
     EditItem.SelectedIndex = 0;
     //设置控件列表面板
     Controllist_Click(null, null);
     DockLeft();
 }