示例#1
0
        public void UpdateCodeView(BaseFileViewModel item)
        {
            switch (item.FileStatus)
            {
            case FileStatus.NewFile:
            case FileStatus.WarningFile:
            case FileStatus.Unchanged:
                UpdateCodeView(item.UpdateTextAction, item.TempFile);
                break;

            case FileStatus.ModifiedFile:
                UpdateCodeView(item.UpdateTextAction, item.TempFile, item.ProjectFile);
                break;

            case FileStatus.ConflictingFile:
                UpdateCodeView(item.UpdateTextAction, item.TempFile, item.ProjectFile, true);
                break;
            }
        }
示例#2
0
 public DataTableFileView(BaseFileViewModel viewModel)
 {
     InitializeComponent();
     DataContext = ViewModel = viewModel;
 }