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


C# Projects.WorkspaceItemEventArgs類代碼示例

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


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

示例1: OnCloseWorkspace

		protected override void OnCloseWorkspace (object sender, WorkspaceItemEventArgs e)
		{
			base.OnCloseWorkspace (sender, e);
			IdeApp.ProjectOperations.CurrentSelectedSolutionItem = null;
			IdeApp.ProjectOperations.CurrentSelectedWorkspaceItem = null;
			IdeApp.ProjectOperations.CurrentSelectedItem = null;
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:7,代碼來源:ProjectSolutionPad.cs

示例2: OnWorkspaceItemLoaded

		static void OnWorkspaceItemLoaded (object sender, WorkspaceItemEventArgs e)
		{
			string fileToLoad = GetUserTasksFilename (e.Item);
			
			userTasks.BeginTaskUpdates ();
			try {
				// Load User Tasks from xml file
				if (File.Exists (fileToLoad)) {
					XmlDataSerializer serializer = new XmlDataSerializer (new DataContext ());
					List<Task> ts = (List<Task>) serializer.Deserialize (fileToLoad, typeof(List<Task>));
					foreach (Task t in ts) {
						t.WorkspaceObject = e.Item;
						userTasks.Add (t);
					}
				}
			}
			catch (Exception ex) {
				LoggingService.LogWarning ("Could not load user tasks: " + fileToLoad, ex);
			}
			finally {
				userTasks.EndTaskUpdates ();
			}
		}
開發者ID:head-thrash,項目名稱:monodevelop,代碼行數:23,代碼來源:TaskService.cs

示例3: OnEntryRemoved

		void OnEntryRemoved (object sender, WorkspaceItemEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Item);
			if (tb != null)
				tb.Remove ();
		}
開發者ID:yayanyang,項目名稱:monodevelop,代碼行數:6,代碼來源:WorkspaceNodeBuilder.cs

示例4: OnEntryAdded

		void OnEntryAdded (object sender, WorkspaceItemEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Item.ParentWorkspace);
			if (tb != null) {
				tb.AddChild (e.Item, true);
				tb.Expanded = true;
			}
		}
開發者ID:yayanyang,項目名稱:monodevelop,代碼行數:8,代碼來源:WorkspaceNodeBuilder.cs

示例5: OnSolutionUnloaded

		void OnSolutionUnloaded (object sender, WorkspaceItemEventArgs e)
		{
			if (e.Item is Solution) {
				RegistryInfo reg;
				if (solutions.TryGetValue ((Solution) e.Item, out reg)) {
					var nav = tree.BuilderContext.GetTreeBuilder (reg);
					if (nav != null)
						nav.Remove ();
				}
			}
		}
開發者ID:Kalnor,項目名稱:monodevelop,代碼行數:11,代碼來源:ExtensionModelBrowserWidget.cs

示例6: OnWorkspaceItemUnloaded

		void OnWorkspaceItemUnloaded (object s, WorkspaceItemEventArgs args)
		{
			if (ContainsTarget (args.Item, currentSolutionItem))
				CurrentSelectedSolutionItem = null;
			if (ContainsTarget (args.Item, currentWorkspaceItem))
				CurrentSelectedWorkspaceItem = null;
			if ((currentItem is IBuildTarget) && ContainsTarget (args.Item, ((IBuildTarget)currentItem)))
				CurrentSelectedItem = null;
		}
開發者ID:nocache,項目名稱:monodevelop,代碼行數:9,代碼來源:ProjectOperations.cs

示例7: OnWorkspaceItemRemoved

		static void OnWorkspaceItemRemoved (object s, WorkspaceItemEventArgs args)
		{
			Unload (args.Item);
		}
開發者ID:Poiros,項目名稱:monodevelop,代碼行數:4,代碼來源:ProjectDomService.cs

示例8: OnWorkspaceItemUnloaded

		void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
		{
			foreach (var sln in e.Item.GetAllSolutions ())
				loadedSlns.Remove (sln);
			comments.RemoveItemTasks (e.Item, true);
		}		
開發者ID:Tak,項目名稱:monodevelop-novell,代碼行數:6,代碼來源:CommentTasksView.cs

示例9: OnCloseWorkspace

		protected virtual void OnCloseWorkspace (object sender, WorkspaceItemEventArgs e)
		{
			treeView.RemoveChild (e.Item);
		}
開發者ID:transformersprimeabcxyz,項目名稱:monodevelop-1,代碼行數:4,代碼來源:SolutionPad.cs

示例10: OnOpenWorkspace

		protected virtual void OnOpenWorkspace (object sender, WorkspaceItemEventArgs e)
		{
			treeView.AddChild (e.Item);
		}
開發者ID:transformersprimeabcxyz,項目名稱:monodevelop-1,代碼行數:4,代碼來源:SolutionPad.cs

示例11: OnWorkspaceItemUnloaded

		void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
		{
			comments.RemoveItemTasks (e.Item, true);

			var solution = e.Item as Solution;
			if (solution != null) {
				loadedSlns.Remove (solution);

				foreach (Project p in solution.GetAllProjects ()) {
					projectTags.Remove (p);
				}
			}
		}
開發者ID:zenek-y,項目名稱:monodevelop,代碼行數:13,代碼來源:CommentTasksView.cs

示例12: OnEntryChanged

		void OnEntryChanged (object sender, WorkspaceItemEventArgs e)
		{
			UpdateTests ();
		}
開發者ID:telebovich,項目名稱:monodevelop,代碼行數:4,代碼來源:WorkspaceTestGroup.cs

示例13: OnCombineOpened

		void OnCombineOpened(object sender, WorkspaceItemEventArgs args)
		{
			try {
				Solution sol = args.Item as Solution;
				if (sol != null && sol.StartupItem != null)
					fb.CurrentDir = sol.StartupItem.BaseDirectory;
			} catch {
				fb.CurrentDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
			}
		}
開發者ID:FreeBSD-DotNet,項目名稱:monodevelop,代碼行數:10,代碼來源:FileScout.cs

示例14: OnWorkspaceItemUnloaded

		void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
		{
			foreach (var sln in e.Item.GetAllSolutions ()) {
				if (loadedSlns.Remove (sln))
					sln.SolutionItemAdded -= HandleSolutionItemAdded;
			}
			comments.RemoveItemTasks (e.Item, true);
		}		
開發者ID:riverans,項目名稱:monodevelop,代碼行數:8,代碼來源:CommentTasksView.cs

示例15: OnWorkspaceItemUnloaded

		static void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
		{
			// Save UserTasks to xml file
			SaveUserTasks (e.Item);
			
			// Remove solution tasks
			
			errors.RemoveItemTasks (e.Item, true);
			userTasks.RemoveItemTasks (e.Item, true);
		}
開發者ID:head-thrash,項目名稱:monodevelop,代碼行數:10,代碼來源:TaskService.cs


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