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; } }
public DataTableFileView(BaseFileViewModel viewModel) { InitializeComponent(); DataContext = ViewModel = viewModel; }