Example #1
0
        private void InvokeRemovedFile(TreeFile file)
        {
            file.MarkAsDeleted();
            var handler = file.StagedStatus == StagedStatus.Staged ? RemovedStagedFile : RemovedUnstagedFile;

            handler?.Invoke(this, new TreeFileEventArgs(file));
        }
Example #2
0
 private void InvokeRemovedFile(TreeFile file)
 {
     file.MarkAsDeleted();
     var handler = file.StagedStatus == StagedStatus.Staged ? RemovedStagedFile : RemovedUnstagedFile;
     if(handler != null) handler(this, new TreeFileEventArgs(file));
 }