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


C# VersionControlItemList.Add方法代码示例

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


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

示例1: GetItems

		protected VersionControlItemList GetItems ()
		{
			VersionControlItemList list = new VersionControlItemList ();
			VersionControlItem it = GetItem ();
			if (it != null)
				list.Add (it);
			return list;
		}
开发者ID:pgoron,项目名称:monodevelop,代码行数:8,代码来源:Commands.cs

示例2: GetItems

		public VersionControlItemList GetItems ()
		{
			// Cached items are used only in the status view, not in the project pad.
			if (items != null)
				return items;

			// Don't cache node items because they can change
			VersionControlItemList nodeItems = new VersionControlItemList ();
			foreach (ITreeNavigator node in CurrentNodes) {
				VersionControlItem item = CreateItem (node.DataItem);
				if (item != null)
					nodeItems.Add (item);
			}
			return nodeItems;
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:15,代码来源:VersionControlCommandHandler.cs

示例3: GetItems

		VersionControlItemList GetItems ()
		{
			VersionControlItemList list = new VersionControlItemList ();
			
			WorkspaceItem wob;
			SolutionItem sol;
			Repository repo = null;
			wob = IdeApp.ProjectOperations.CurrentSelectedWorkspaceItem;
			if (wob != null)
				repo = VersionControlService.GetRepository (wob);
			if (repo == null) {
				sol = IdeApp.ProjectOperations.CurrentSelectedSolutionItem;
				if (sol != null)
					repo = VersionControlService.GetRepository (sol);
			}
			if (repo == null || repo.VersionControlSystem == null || !repo.VersionControlSystem.IsInstalled)
				return list;

			list.Add (new VersionControlItem (repo, wob, wob.FileName, true, null));
			return list;
		}
开发者ID:OnorioCatenacci,项目名称:monodevelop,代码行数:21,代码来源:Commands.cs

示例4: GetSelectedItems

		public VersionControlItemList GetSelectedItems ()
		{
			string[] files = GetCurrentFiles ();
			VersionControlItemList items = new VersionControlItemList ();
			foreach (string file in files) {
				Project prj = IdeApp.Workspace.GetProjectsContainingFile (file).FirstOrDefault ();
				items.Add (new VersionControlItem (vc, prj, file, Directory.Exists (file), null));
			}
			return items;
开发者ID:kdubau,项目名称:monodevelop,代码行数:9,代码来源:StatusView.cs

示例5: Show

		public static void Show (Repository repo, string path)
		{
			VersionControlItemList list = new VersionControlItemList ();
			list.Add (new VersionControlItem (repo, null, path, Directory.Exists (path)));
			Show (list, false);
		}
开发者ID:acken,项目名称:monodevelop,代码行数:6,代码来源:DiffView.cs


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