Exemple #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);
 }
Exemple #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;
                }
            }
        }
Exemple #3
0
 public MergeView(VersionControlDocumentInfo info) : base("Merge")
 {
     widget = new MergeWidget();
     widget.Load(info);
 }
Exemple #4
0
 public MergeView(VersionControlDocumentInfo info) : base(GettextCatalog.GetString("Merge"))
 {
     widget = new MergeWidget();
     widget.Load(info);
 }
Exemple #5
0
		public MergeView (VersionControlDocumentInfo info) : base ("Merge")
		{
			widget = new MergeWidget ();
			widget.Load (info);
		}
		public MergeView (VersionControlDocumentInfo info) : base (GettextCatalog.GetString ("Merge"))
		{
			widget = new MergeWidget ();
			widget.Load (info);
		}