Beispiel #1
0
 void RefreshContent()
 {
     Task.Run(async() => {
         var item = info?.Item;
         if (item == null)
         {
             return(false);
         }
         var isConflicted = (await item.GetVersionInfoAsync())?.Status.HasFlag(VersionStatus.Conflicted) ?? false;
         return(isConflicted);
     }).ContinueWith(t => {
         if (t.Result)
         {
             if (widget == null)
             {
                 widget = new MergeWidget();
                 widget.Load(info);
             }
             if (widgetContainer.Content != widget)
             {
                 widgetContainer.Content = widget;
             }
         }
         else
         {
             if (widgetContainer.Content != NoMergeConflictsLabel)
             {
                 widgetContainer.Content = NoMergeConflictsLabel;
             }
         }
     }, Runtime.MainTaskScheduler);
 }
Beispiel #2
0
        void RefreshContent()
        {
            var isConflicted = info?.Item?.VersionInfo?.Status.HasFlag(VersionStatus.Conflicted) ?? false;

            if (isConflicted)
            {
                if (widget == null)
                {
                    widget = new MergeWidget();
                    widget.Load(info);
                }
                if (widgetContainer.Content != widget)
                {
                    widgetContainer.Content = widget;
                }
            }
            else
            {
                if (widgetContainer.Content != NoMergeConflictsLabel)
                {
                    widgetContainer.Content = NoMergeConflictsLabel;
                }
            }
        }
Beispiel #3
0
 public MergeView(VersionControlDocumentInfo info) : base("Merge")
 {
     widget = new MergeWidget();
     widget.Load(info);
 }
Beispiel #4
0
 public MergeView(VersionControlDocumentInfo info) : base(GettextCatalog.GetString("Merge"))
 {
     widget = new MergeWidget();
     widget.Load(info);
 }
Beispiel #5
0
		public MergeView (VersionControlDocumentInfo info) : base ("Merge")
		{
			widget = new MergeWidget ();
			widget.Load (info);
		}
Beispiel #6
0
		public MergeView (VersionControlDocumentInfo info) : base (GettextCatalog.GetString ("Merge"))
		{
			widget = new MergeWidget ();
			widget.Load (info);
		}