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


C# ProjectFileEventArgs.Any方法代码示例

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


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

示例1: OnFilePropertyChangedInProject

		void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
		{
			var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
			if (pad == null)
				return;

			var grid = ((PropertyPad)pad.Content).PropertyGrid;
			if (args.Any (arg => arg.ProjectFile == file))
				grid.Refresh ();
		}
开发者ID:nerzhulart,项目名称:monodevelop,代码行数:10,代码来源:ProjectFileDescriptor.cs

示例2: OnFilePropertyChangedInProject

		void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
		{
			var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
			if (pad == null)
				return;

			var grid = ((PropertyPad)pad.Content).PropertyGrid;
			if (grid.IsEditing)
				return;

			if (args.Any (arg => arg.ProjectFile == file))
				grid.Populate (saveEditSession: false);
		}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:13,代码来源:ProjectFileDescriptor.cs

示例3: HandleProjectChanged

		void HandleProjectChanged (object sender, ProjectFileEventArgs e)
		{
			if (e.Any (f => f.ProjectFile.FilePath == DocumentContext.Name))
				UpdateOwnerProjects ();
		}
开发者ID:gAdrev,项目名称:monodevelop,代码行数:5,代码来源:BaseXmlEditorExtension.cs

示例4: FileRemovedFromProject

		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (!SyncingEnabled)
				return;
			
			XC4Debug.Log ("Files removed from project '{0}'", dnp.Name);
			foreach (var file in e)
				XC4Debug.Log ("   * Removed: {0}", file.ProjectFile.ProjectVirtualPath);
			
			XC4Debug.Indent ();
			try {
				if (e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
					if (!dnp.Files.Any (IsInterfaceDefinition)) {
						XC4Debug.Log ("Last Interface Definition file removed from '{0}', disabling Xcode sync.", dnp.Name);
						DisableSyncing ();
						return;
					}
				}
			} finally {
				XC4Debug.Unindent ();
			}
			
			CheckFileChanges (e);
		}
开发者ID:txdv,项目名称:monodevelop,代码行数:24,代码来源:XcodeProjectTracker.cs

示例5: FileRemovedFromProject

		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (syncing && e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
				if (!dnp.Files.Any (IsInterfaceDefinition)) {
					XC4Debug.Log ("All page files removed, disabling sync");
					DisableSyncing ();
					return;
				}
			}
			
			CheckFileChanges (e);
		}
开发者ID:aleksandersumowski,项目名称:monodevelop,代码行数:12,代码来源:XcodeProjectTracker.cs

示例6: FilePropertyChangedInProject

		void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
		{
			if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
				xcodeProjectDirty = true;
			
			//FIXME: make this async
			UpdateTypes (true);
			UpdateXcodeProject ();
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:9,代码来源:XcodeProjectTracker.cs

示例7: FileRemovedFromProject

		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			//FIXME: do we need to disable syncing here?
			if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				if (!dnp.Files.Any (IsPage))
					DisableSyncing ();
			
			//FIXME: make this async
			UpdateTypes (true);
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:10,代码来源:XcodeProjectTracker.cs

示例8: OnFilePropertyChangedInProject

		protected override void OnFilePropertyChangedInProject (ProjectFileEventArgs e)
		{
			base.OnFilePropertyChangedInProject (e);
			if (Loading)
				return;
			
			if (e.Any (f => f.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource))
				QueueResgenUpdate ();
		}
开发者ID:poke,项目名称:monodevelop,代码行数:9,代码来源:MonoDroidProject.cs

示例9: FilePropertyChangedInProject

		void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
		{
			if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				EnableSyncing ();
			
			if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
				xcodeProjectDirty = true;
			
			if (syncing)
				UpdateTypes (true);
			
			UpdateXcodeProject ();
		}
开发者ID:poke,项目名称:monodevelop,代码行数:13,代码来源:XcodeProjectTracker.cs

示例10: FileAddedToProject

		void FileAddedToProject (object sender, ProjectFileEventArgs e)
		{
			if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				EnableSyncing ();
			
			if (syncing)
				UpdateTypes (true);
			
			UpdateXcodeProject ();
		}
开发者ID:poke,项目名称:monodevelop,代码行数:10,代码来源:XcodeProjectTracker.cs

示例11: FileRemovedFromProject

		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				if (!dnp.Files.Any (IsPage))
					DisableSyncing ();
			
			if (syncing)
				UpdateTypes (true);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:9,代码来源:XcodeProjectTracker.cs


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