[Monodevelop-patches-list] r580 - trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 19 20:52:52 EST 2004


Author: benm
Date: 2004-01-19 20:52:52 -0500 (Mon, 19 Jan 2004)
New Revision: 580

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ReferenceNode.cs
Log:
just dont do a dialog here

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ReferenceNode.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ReferenceNode.cs	2004-01-20 01:52:34 UTC (rev 579)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ReferenceNode.cs	2004-01-20 01:52:52 UTC (rev 580)
@@ -87,40 +87,10 @@
 		/// from the type 'ProejctBrowserNode'.
 		/// </summary>
 		public override bool RemoveNode()
-		{
-			string question = String.Empty;
+		{
+			
+			// TODO: Should we place a dialog here. There was one, but that is excessive.
 			ProjectReference referenceInformation = (ProjectReference)UserData;
-			ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
-			StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
-			
-			switch(referenceInformation.ReferenceType) {
-				case ReferenceType.Typelib:
-					question = resourceService.GetString("ProjectComponent.RemoveReference.RemoveAssemblyQuestion");
-					break;
-				case ReferenceType.Assembly:
-					question = resourceService.GetString("ProjectComponent.RemoveReference.RemoveAssemblyQuestion");
-					break;
-				case ReferenceType.Project:
-					question = resourceService.GetString("ProjectComponent.RemoveReference.RemoveProjectQuestion");
-					break;
-				case ReferenceType.Gac:
-					question = resourceService.GetString("ProjectComponent.RemoveReference.RemoveGacAssembyQuestion");
-					break;
-				default:
-					Debug.Assert(false, "Unknown reference type");
-					break;
-			}
-			
-			/*int ret = new SharpMessageBox(resourceService.GetString("ProjectComponent.RemoveReference.Title"),
-			                              stringParserService.Parse(question, new string[,] { {"REFERENCE", Text}}),
-								          resourceService.GetString("Global.RemoveButtonText"), 
-									      resourceService.GetString("Global.CancelButtonText")).ShowMessageBox();*/
-			Console.WriteLine ("Unported Dialog in ReferenceNode.cs");
-			int ret = -1;
-			
-			if (ret == 1 || ret == -1) {
-				return false;
-			}
 		
 			Project.ProjectReferences.Remove(referenceInformation);
 			




More information about the Monodevelop-patches-list mailing list