Ejemplo n.º 1
0
        private void sourceControl_StatusChanged(object sender, SourceControlEventArgs e)
        {
            // Find the item
            foreach (ThumbnailControlItem item in m_thumbnailControl.Items)
            {
                IResource resource = item.Tag as IResource;
                if (resource != null && resource.Uri == e.Uri)
                {
                    item.Indicator = SetSourceControlIndicator(resource.Uri, e.Status);
                    RefreshThumbnail(resource);
                    break;
                }
            }

            foreach (ListViewItem item in m_listView.Items)
            {
                IResource resource = item.Tag as IResource;
                if (resource != null && resource.Uri == e.Uri)
                {
                    //item.Indicator = SetSourceControlIndicator(src.FilePath, e.Status);
                    break;
                }
            }

            //if (m_listControl.Visible)
            //    m_listViewAdaptor.Refresh();
        }
Ejemplo n.º 2
0
 // update source control status icon on the document tab
 private void SourceControl_StatusChanged(object sender, SourceControlEventArgs e)
 {
     var document = m_documentRegistry.GetDocument(e.Uri) as CodeDocument;
     if (document == null)
         return;
     document.ControlInfo.Image = m_sourceControlService.GetSourceControlStatusIcon(e.Uri, e.Status);
 }
Ejemplo n.º 3
0
 private void SourceControlServiceStatusChanged(object sender, SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Raises the StatusChanged event</summary>
 /// <param name="e">Event args</param>
 protected virtual void OnStatusChanged(SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Raises the StatusChanged event</summary>
 /// <param name="e">Event args</param>
 protected virtual void OnStatusChanged(SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Raises the StatusChanged event</summary>
 /// <param name="e">Event args</param>
 protected override void OnStatusChanged(SourceControlEventArgs e)
 {
     if (MainForm != null)
         MainForm.Invoke(new MethodInvoker(() => base.OnStatusChanged(e)));
     else
         base.OnStatusChanged(e);
 }