• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MergableMenu类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MergableMenu的典型用法代码示例。如果您正苦于以下问题:C# MergableMenu类的具体用法?C# MergableMenu怎么用?C# MergableMenu使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MergableMenu类属于命名空间,在下文中一共展示了MergableMenu类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddOtherResourceItems

		private void AddOtherResourceItems(MergableMenu menu, string path)
		{
			bool addLibrary = project.IsLibraryAsset(path);

			if (!project.UsesInjection)
				menu.Add(Insert,0);

			menu.Add(Execute,0);
			
			if (!project.UsesInjection)
				menu.Add(AddLibrary,2,addLibrary);

			if (addLibrary)
				menu.Add(LibraryOptions,2);

			AddFileItems(menu,path);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:17,代码来源:ProjectContextMenu.cs


示例2: AddProjectOutputItems

 private void AddProjectOutputItems(MergableMenu menu, ProjectOutputNode node)
 {
     if (node.FileExists)
     {
         menu.Add(Open, 0);
         menu.Add(Execute, 0);
         menu.Add(ShellMenu, 0);
         AddFileItems(menu, node.BackingPath);
     }
     else menu.Add(NoProjectOutput, 0);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:11,代码来源:ProjectContextMenu.cs


示例3: AddFileItems

 private void AddFileItems(MergableMenu menu, string path)
 {
     AddFileItems(menu, path, true);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:4,代码来源:ProjectContextMenu.cs


示例4: AddCssItems

 private void AddCssItems(MergableMenu menu, string path)
 {
     if (project.Language != "as3")
     {
         AddGenericFileItems(menu, path);
         return;
     }
     bool alwaysCompile = project.IsCompileTarget(path);
     menu.Add(Open, 0);
     menu.Add(Execute, 0);
     menu.Add(ShellMenu, 0);
     menu.Add(AlwaysCompile, 2, alwaysCompile);
     AddFileItems(menu, path);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:14,代码来源:ProjectContextMenu.cs


示例5: AddSwfItems

 private void AddSwfItems(MergableMenu menu, string path)
 {
     bool addLibrary = project.HasLibraries && project.IsLibraryAsset(path);
     menu.Add(Open, 0);
     menu.Add(Execute, 0);
     menu.Add(ShellMenu, 0);
     menu.Add(Insert, 0);
     if (addLibrary)
     {
         LibraryAsset asset = project.GetAsset(path);
         if (asset.SwfMode == SwfAssetMode.Library) menu.Add(Insert, 0);
     }
     if (project.HasLibraries) menu.Add(AddLibrary, 2, addLibrary);
     if (addLibrary) menu.Add(LibraryOptions, 2);
     AddFileItems(menu, path);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:16,代码来源:ProjectContextMenu.cs


示例6: AddClasspathItems

 private void AddClasspathItems(MergableMenu menu)
 {
     menu.Add(AddMenu, 0);
     menu.Add(Browse, 0);
     menu.Add(FindInFiles, 0);
     menu.Add(ShellMenu, 0);
     menu.Add(Paste, 1);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:8,代码来源:ProjectContextMenu.cs


示例7: AddActionScriptItems

 private void AddActionScriptItems(MergableMenu menu, string path)
 {
     bool alwaysCompile = project.IsCompileTarget(path);
     menu.Add(Open, 0);
     menu.Add(Execute, 0);
     menu.Add(ShellMenu, 0);
     menu.Add(AlwaysCompile, 2, alwaysCompile);
     menu.Add(CopyClassName, 4);
     AddFileItems(menu, path);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:10,代码来源:ProjectContextMenu.cs


示例8: AddCompileTargetItems

 private void AddCompileTargetItems(MergableMenu menu, string path, bool isFolder)
 {
     CompileTargetType result = project.AllowCompileTarget(path, isFolder);
     if (result != CompileTargetType.None)
     {
         bool isMain = false;
         if ((result & CompileTargetType.DocumentClass) > 0)
         {
             isMain = project.IsDocumentClass(path);
             if (isMain) menu.Add(DocumentClass, 2, true);
             else menu.Add(SetDocumentClass, 2, false);
         }
         if (!isMain && (result & CompileTargetType.AlwaysCompile) > 0)
         {
             menu.Add(AlwaysCompile, 2, project.IsCompileTarget(path));
         }
         if (!isFolder) menu.Add(CopyClassName, 2);
     }
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:19,代码来源:ProjectContextMenu.cs


示例9: AddCssItems

 private void AddCssItems(MergableMenu menu, string path)
 {
     if (project.Language == "as3") AddClassItems(menu, path);
     else AddGenericFileItems(menu, path);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:5,代码来源:ProjectContextMenu.cs


示例10: AddFolderItems

        private void AddFolderItems(MergableMenu menu, string path)
        {
            menu.Add(AddMenu, 0);
            menu.Add(Browse, 0);
            menu.Add(FindInFiles, 0);
            menu.Add(CommandPrompt, 0);
            if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
            AddCompileTargetItems(menu, path, true);

            bool addLibrary = project.IsLibraryAsset(path);
            menu.Add(AddLibrary, 2, addLibrary);
            if (addLibrary) menu.Add(LibraryOptions, 2);

            if (projectTree.SelectedPaths.Length == 1 && project.IsCompilable)
            {
                DirectoryNode node = projectTree.SelectedNode as DirectoryNode;
                if (node.InsideClasspath == node) menu.Add(RemoveSourcePath, 2, true);
                else if (node != null && (node.InsideClasspath == null || node.InsideClasspath is ProjectNode))
                {
                    menu.Add(AddSourcePath, 2, false);
                }
            }
            AddFileItems(menu, path, true);
        }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:24,代码来源:ProjectContextMenu.cs


示例11: AddClassItems

 private void AddClassItems(MergableMenu menu, string path)
 {
     menu.Add(Open, 0);
     menu.Add(Execute, 0);
     menu.Add(FindAndReplace, 0);
     if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
     AddCompileTargetItems(menu, path, false);
     AddFileItems(menu, path);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:9,代码来源:ProjectContextMenu.cs


示例12: AddInvalidClassPathNodes

 private void AddInvalidClassPathNodes(MergableMenu menu, string path)
 {
     menu.Add(RemoveSourcePath, 2, true);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:4,代码来源:ProjectContextMenu.cs


示例13: AddClasspathItems

 private void AddClasspathItems(MergableMenu menu, string path)
 {
     menu.Add(AddMenu, 0);
     menu.Add(Browse, 0);
     menu.Add(FindInFiles, 0);
     menu.Add(CommandPrompt, 0);
     if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
     menu.Add(Paste, 1);
     menu.Add(RemoveSourcePath, 2, true);
     AddHideItems(menu, path, 3);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:11,代码来源:ProjectContextMenu.cs


示例14: AddGenericFileItems

		private void AddGenericFileItems(MergableMenu menu, string path)
		{
			menu.Add(Open,0);
			menu.Add(Execute,0);
			AddFileItems(menu,path);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:6,代码来源:ProjectContextMenu.cs


示例15: AddExportItems

 private void AddExportItems(MergableMenu menu, ExportNode node)
 {
     // it DOES make sense to allow insert of assets inside the injection target!
     if (project.UsesInjection && project.GetRelativePath(node.ContainingSwfPath) != project.InputPath) return;
     if (node is ClassExportNode) menu.Add(Open, 0);
     menu.Add(Insert, 0);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:7,代码来源:ProjectContextMenu.cs


示例16: AddInvalidSwcItems

 private void AddInvalidSwcItems(MergableMenu menu, string path)
 {
     bool addLibrary = project.IsLibraryAsset(path);
     if (addLibrary) menu.Add(LibraryOptions, 2);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:5,代码来源:ProjectContextMenu.cs


示例17: AddProjectItems

 private void AddProjectItems(MergableMenu menu)
 {
     bool showHidden = project.ShowHiddenPaths;
     menu.Add(TestMovie, 0);
     menu.Add(BuildProject, 0);
     if (HasSubProjects()) menu.Add(TestAllProjects, 0);
     if (HasSubProjects()) menu.Add(BuildAllProjects, 0);
     menu.Add(CloseProject, 0);
     menu.Add(AddMenu, 1);
     menu.Add(Browse, 1);
     menu.Add(FindInFiles, 1);
     menu.Add(ShellMenu, 1);
     menu.Add(Paste, 2);
     menu.Add(ShowHidden, 3, showHidden);
     menu.Add(Properties, 4);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:16,代码来源:ProjectContextMenu.cs


示例18: AddProjectOutputItems

 private void AddProjectOutputItems(MergableMenu menu, ProjectOutputNode node)
 {
     if (node.FileExists)
     {
         menu.Add(Open, 0);
         menu.Add(Execute, 0);
         menu.Add(FindAndReplace, 0);
         if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0); 
         AddFileItems(menu, node.BackingPath);
     }
     else menu.Add(NoProjectOutput, 0);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:12,代码来源:ProjectContextMenu.cs


示例19: AddFolderItems

 private void AddFolderItems(MergableMenu menu, string path)
 {
     bool alwaysCompile = project.IsCompileTarget(path);
     menu.Add(AddMenu, 0);
     menu.Add(Browse, 0);
     menu.Add(FindInFiles, 0);
     menu.Add(ShellMenu, 0);
     if (project.Language == "as2") menu.Add(AlwaysCompile, 2, alwaysCompile);
     AddFileItems(menu, path, true);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:10,代码来源:ProjectContextMenu.cs


示例20: AddFileItems

 private void AddFileItems(MergableMenu menu, string path, bool addPaste)
 {
     menu.Add(Cut, 1);
     menu.Add(Copy, 1);
     if (addPaste) menu.Add(Paste, 1);
     menu.Add(Delete, 1);
     menu.Add(Rename, 1);
     AddHideItems(menu, path, 3);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:9,代码来源:ProjectContextMenu.cs



注:本文中的MergableMenu类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MergeOption类代码示例发布时间:2022-05-24
下一篇:
C# MerchantTribeApplication类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap