當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。