Example #1
0
        /// <summary>
        /// 添加一个代码类
        /// </summary>
        /// <param name="page"></param>
        public void AddPicTabPage(PicTabPage page)
        {
            while (true)
            {
                if (MyListPicPage.ContainsKey(page.Title))
                {
                    page.Title = page.Title + "1";
                }
                else
                {
                    break;
                }
            }
            MyListPicPage.Add(page.Title, page);
            ///设置回调函数
            page.MessageUpdateCall = this.ChileEventCallBack;
            MyProjectFiles file = new MyProjectFiles();

            file.Name = page.Title;
            file.Path = FilesPath + page.Title;
            MyListProjectFiles.Add(file);
            page.PopContentCode.MyData = DataSource;
            ///初始化数据
            ModityPicTabPageFunction();
            ///添加数据
            foreach (XAribute bute in page.ListXAributes)
            {
                ///添加类型
                bute.ProjectUseClassType = this.ProjectUseClassType;
            }
        }
Example #2
0
 /// <summary>
 /// 添加一个项目文件
 /// </summary>
 /// <param name="pro">要添加的项目类</param>
 public void AddProjectClass(ProjectClass pro)
 {
     if (!MySolution.Contains(pro))
     {
         MySolution.Add(pro);
         MyProjectFiles file = new MyProjectFiles();
         file.Name = pro.ProjectName;
         file.Path = pro.FilesPath;
         MyProjectClassFile.Add(file);
     }
 }