示例#1
0
文件: AssetLister.cs 项目: zparr/ATF
        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();
        }
示例#2
0
文件: Editor.cs 项目: sbambach/ATF
 // 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);
 }
示例#3
0
 private void SourceControlServiceStatusChanged(object sender, SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
示例#4
0
 /// <summary>
 /// Raises the StatusChanged event</summary>
 /// <param name="e">Event args</param>
 protected virtual void OnStatusChanged(SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
示例#5
0
 /// <summary>
 /// Raises the StatusChanged event</summary>
 /// <param name="e">Event args</param>
 protected virtual void OnStatusChanged(SourceControlEventArgs e)
 {
     StatusChanged.Raise(this, e);
 }
示例#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);
 }