當前位置: 首頁>>代碼示例>>C#>>正文


C# Projects.ProjectReferenceEventArgs類代碼示例

本文整理匯總了C#中MonoDevelop.Projects.ProjectReferenceEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# ProjectReferenceEventArgs類的具體用法?C# ProjectReferenceEventArgs怎麽用?C# ProjectReferenceEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProjectReferenceEventArgs類屬於MonoDevelop.Projects命名空間,在下文中一共展示了ProjectReferenceEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnReferenceAdded

        static void OnReferenceAdded(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            Project project = args.Project as DotNetProject;
            if (project != null && project.ExtendedProperties["QyotoDesignInfo"] == null)
                QyotoDesignInfo.EnableProject(project);
        }
開發者ID:codebutler,項目名稱:qyotodevelop,代碼行數:9,代碼來源:ReferenceManager.cs

示例2: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			if (Project.Loading)
				return;

			if (RequiresMicrosoftBuild && e.ProjectReference.ReferenceType == ReferenceType.Project) {
				EnsureReferencedProjectsRequireMSBuild (true);
			}
		}
開發者ID:PlayScriptRedux,項目名稱:monodevelop,代碼行數:11,代碼來源:DotNetProjectPackagingExtension.cs

示例3: OnReferenceRemoved

        static void OnReferenceRemoved(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            DotNetProject dnp = args.Project as DotNetProject;

            if (dnp != null) {
                if (MonoDevelop.Core.Gui.MessageService.Confirm("Qyoto features will be disabled by removing the qt-dotnet reference.", new MonoDevelop.Core.Gui.AlertButton("Disable Qyoto")))
                    QyotoDesignInfo.DisableProject(dnp);
                else
                    dnp.References.Add(new ProjectReference(ReferenceType.Gac, args.ProjectReference.StoredReference));
            }
        }
開發者ID:codebutler,項目名稱:qyotodevelop,代碼行數:14,代碼來源:ReferenceManager.cs

示例4: OnRemoveReference

		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Project);
			if (tb != null) {
				if (tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
開發者ID:slwatmough,項目名稱:monodevelop,代碼行數:8,代碼來源:ProjectReferenceFolderNodeBuilder.cs

示例5: OnReferenceRemoved

		void OnReferenceRemoved (object ob, ProjectReferenceEventArgs args)
		{
			if (disposed || !librariesUpdated)
				return;
			string pref = GetReferenceLibraryPath (args.ProjectReference);
			if (pref != null) {
				gproject.RemoveWidgetLibrary (pref);
				SaveProject (false);
			}
		}
開發者ID:rajeshpillai,項目名稱:monodevelop,代碼行數:10,代碼來源:GuiBuilderProject.cs

示例6: OnReferenceChanged

		void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
		{
			if (args.Project.ParentSolution == folder.ParentSolution && NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
				UpdateTests ();
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:5,代碼來源:SolutionFolderTestGroup.cs

示例7: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			findPipelineEntries(e.ProjectReference);
			base.OnReferenceAddedToProject(e);
		}
開發者ID:sergios1234,項目名稱:monoxna,代碼行數:5,代碼來源:ContentProject.cs

示例8: OnReferenceRemoved

		static void OnReferenceRemoved (object o, ProjectReferenceEventArgs args)
		{
			if (updating || !IsGtkReference (args.ProjectReference))
				return;

			DotNetProject dnp = args.Project as DotNetProject;

			if (MessageService.Confirm (GettextCatalog.GetString ("The Gtk# User Interface designer will be disabled by removing the gtk-sharp reference."), new AlertButton (GettextCatalog.GetString ("Disable Designer"))))
				GtkDesignInfo.DisableProject (dnp);
			else
				dnp.References.Add (new ProjectReference (ReferenceType.Gac, args.ProjectReference.StoredReference));
		}
開發者ID:Tak,項目名稱:monodevelop-novell,代碼行數:12,代碼來源:ReferenceManager.cs

示例9: OnRemoveReference

		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			var p = e.Project as DotNetProject;
			if (p != null) {
				ITreeBuilder tb = Context.GetTreeBuilder (p.References);
				if (tb != null && tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
開發者ID:sushihangover,項目名稱:monodevelop,代碼行數:9,代碼來源:ProjectReferenceFolderNodeBuilder.cs

示例10: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			DotNetProject project = GetDotNetProject (e.ProjectReference);
			if (project != null) {
				EnsureBuildPackagingNuGetPackageIsInstalled (project);
			}
		}
開發者ID:PlayScriptRedux,項目名稱:monodevelop,代碼行數:9,代碼來源:PackagingProject.cs

示例11: OnAddReference

 void OnAddReference(object sender, ProjectReferenceEventArgs e)
 {
     var p = e.Project as AbstractDProject;
     if (p != null) {
         var tb = Context.GetTreeBuilder (p.References);
         if (tb != null)
             tb.AddChild (e.ProjectReference);
     }
 }
開發者ID:Geod24,項目名稱:Mono-D,代碼行數:9,代碼來源:DProjectReferenceFolderNodeBuilder.cs

示例12: OnReferenceRemovedFromProject

		protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			//short-circuit if the project is being deserialised
			if (Project.Loading) {
				base.OnReferenceAddedToProject (e);
				return;
			}

			UpdateWebConfigRefs ();

			base.OnReferenceRemovedFromProject (e);
		}
開發者ID:kdubau,項目名稱:monodevelop,代碼行數:12,代碼來源:AspNetAppProjectFlavor.cs

示例13: OnReferenceRemovedFromProject

			internal protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceRemovedFromProject (e);
			}
開發者ID:ArsenShnurkov,項目名稱:monodevelop,代碼行數:4,代碼來源:DotNetProject.cs

示例14: OnReferenceAddedToProject

			internal protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceAddedToProject (e);
			}
開發者ID:ArsenShnurkov,項目名稱:monodevelop,代碼行數:4,代碼來源:DotNetProject.cs

示例15: OnReferenceRemovedFromProject

		internal protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			next.OnReferenceRemovedFromProject (e);
		}
開發者ID:sushihangover,項目名稱:monodevelop,代碼行數:4,代碼來源:DotNetProjectExtension.cs


注:本文中的MonoDevelop.Projects.ProjectReferenceEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。