本文整理汇总了C#中VersionInfo.HasRemoteChange方法的典型用法代码示例。如果您正苦于以下问题:C# VersionInfo.HasRemoteChange方法的具体用法?C# VersionInfo.HasRemoteChange怎么用?C# VersionInfo.HasRemoteChange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VersionInfo
的用法示例。
在下文中一共展示了VersionInfo.HasRemoteChange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AppendFileInfo
TreeIter AppendFileInfo (VersionInfo n, bool expanded)
{
Xwt.Drawing.Image statusicon = VersionControlService.LoadIconForStatus(n.Status);
string lstatus = VersionControlService.GetStatusLabel (n.Status);
Xwt.Drawing.Image rstatusicon = VersionControlService.LoadIconForStatus(n.RemoteStatus);
string rstatus = VersionControlService.GetStatusLabel (n.RemoteStatus);
string scolor = n.HasLocalChanges && n.HasRemoteChanges ? "red" : null;
string localpath = n.LocalPath.ToRelative (filepath);
if (localpath.Length > 0 && localpath[0] == Path.DirectorySeparatorChar) localpath = localpath.Substring(1);
if (localpath == "") { localpath = "."; } // not sure if this happens
bool hasComment = GetCommitMessage (n.LocalPath).Length > 0;
bool commit = changeSet.ContainsFile (n.LocalPath);
Xwt.Drawing.Image fileIcon;
if (n.IsDirectory)
fileIcon = ImageService.GetIcon (MonoDevelop.Ide.Gui.Stock.ClosedFolder, Gtk.IconSize.Menu);
else
fileIcon = DesktopService.GetIconForFile (n.LocalPath, Gtk.IconSize.Menu);
TreeIter it = filestore.AppendValues (statusicon, lstatus, GLib.Markup.EscapeText (localpath).Split ('\n'), rstatus, commit, false, n.LocalPath.ToString (), true, hasComment, fileIcon, n.HasLocalChanges, rstatusicon, scolor, n.HasRemoteChange (VersionStatus.Modified));
if (!n.IsDirectory)
filestore.AppendValues (it, statusicon, "", new string[0], "", false, true, n.LocalPath.ToString (), false, false, fileIcon, false, null, null, false);
if (expanded)
filelist.ExpandRow (filestore.GetPath (it), open_all: false);
return it;