当前位置: 首页>>代码示例>>C#>>正文


C# MergableMenu.Add方法代码示例

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


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

示例1: AddProjectItems

		private void AddProjectItems(MergableMenu menu)
		{
			bool showHidden = project.ShowHiddenPaths;

			menu.Add(menus.ProjectMenu.TestMovie,0);
			menu.Add(menus.ProjectMenu.BuildProject,0);
			menu.Add(AddMenu,1);
			menu.Add(Paste,2);
			menu.Add(ShowHidden,3,showHidden);
			menu.Add(menus.ProjectMenu.Properties,4);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:11,代码来源:ProjectContextMenu.cs

示例2: AddSwcItems

 private void AddSwcItems(MergableMenu menu, string path)
 {
     bool addLibrary = project.IsLibraryAsset(path);
     menu.Add(Execute, 0);
     menu.Add(ShellMenu, 0);
     menu.Add(AddLibrary, 2, addLibrary);
     if (addLibrary) menu.Add(LibraryOptions, 2);
     if (!this.IsExternalSwc(path)) AddFileItems(menu, path);
     else
     {
         menu.Add(Copy, 1);
         menu.Add(Delete, 1);
     }
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:14,代码来源:ProjectContextMenu.cs

示例3: AddFileItems

 private void AddFileItems(MergableMenu menu, string path, bool addPaste)
 {
     bool hidden = project.IsPathHidden(path);
     bool showHidden = project.ShowHiddenPaths;
     menu.Add(Cut, 1);
     menu.Add(Copy, 1);
     if (addPaste) menu.Add(Paste, 1);
     menu.Add(Delete, 1);
     menu.Add(Rename, 1);
     menu.Add(ShowHidden, 3, showHidden);
     menu.Add(HideItem, 3, hidden);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:12,代码来源:ProjectContextMenu.cs

示例4: AddMxmlItems

 private void AddMxmlItems(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);
     AddFileItems(menu, path);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:9,代码来源:ProjectContextMenu.cs

示例5: AddOtherResourceItems

 private void AddOtherResourceItems(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 (project.HasLibraries) menu.Add(AddLibrary, 2, addLibrary);
     if (addLibrary) menu.Add(LibraryOptions, 2);
     AddFileItems(menu, path);
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:11,代码来源:ProjectContextMenu.cs

示例6: 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

示例7: 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

示例8: 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

示例9: AddInvalidClassPathNodes

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

示例10: 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

示例11: 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

示例12: AddActionScriptItems

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

			menu.Add(Open,0);
			menu.Add(Execute,0);
			menu.Add(AlwaysCompile,2,alwaysCompile);
			
			AddFileItems(menu,path);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:11,代码来源:ProjectContextMenu.cs

示例13: AddFolderItems

		private void AddFolderItems(MergableMenu menu, string path)
		{
			bool alwaysCompile = project.IsCompileTarget(path);

			menu.Add(AddMenu,0);
			menu.Add(AlwaysCompile,2,alwaysCompile);
			AddFileItems(menu,path,true);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:8,代码来源:ProjectContextMenu.cs

示例14: AddClasspathItems

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

示例15: AddGenericFileItems

 private void AddGenericFileItems(MergableMenu menu, string path)
 {
     menu.Add(Open, 0);
     menu.Add(Execute, 0);
     menu.Add(FindAndReplace, 0);
     if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
     menu.Add(Insert, 0);
     if (IsBuildable(path))
     {
         if (projectTree.SelectedPaths.Length == 1) menu.Add(BuildProjectFile, 2);
         else menu.Add(BuildProjectFiles, 2);
     }
     AddFileItems(menu, path);
 }
开发者ID:zaynyatyi,项目名称:flashdevelop,代码行数:14,代码来源:ProjectContextMenu.cs


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