Exemplo n.º 1
0
        private void diffEditFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var item     = DiffFiles.SelectedItem;
            var fileName = _fullPathResolver.Resolve(item.Name);

            UICommands.StartFileEditorDialog(fileName);
            RefreshArtificial();
        }
Exemplo n.º 2
0
        private void diffEditFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var item     = DiffFiles.SelectedItem;
            var fileName = Path.Combine(Module.WorkingDir, item.Name);

            UICommands.StartFileEditorDialog(fileName);
            RefreshArtificial();
        }
 private void editCheckedOutFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (tvGitTree.SelectedNode?.Tag is GitItem gitItem && gitItem.ObjectType == GitObjectType.Blob)
     {
         var fileName = _fullPathResolver.Resolve(gitItem.FileName);
         UICommands.StartFileEditorDialog(fileName);
     }
 }
Exemplo n.º 4
0
        private void diffEditWorkingDirectoryFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DiffFiles.SelectedItem == null)
            {
                return;
            }

            var fileName = _fullPathResolver.Resolve(DiffFiles.SelectedItem.Name);

            UICommands.StartFileEditorDialog(fileName);
            RefreshArtificial();
        }
Exemplo n.º 5
0
        private void editCheckedOutFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var gitItem = tvGitTree.SelectedNode?.Tag as GitItem;

            if (gitItem == null || gitItem.ObjectType != GitObjectType.Blob)
            {
                return;
            }

            var fileName = Path.Combine(Module.WorkingDir, gitItem.FileName);

            UICommands.StartFileEditorDialog(fileName);
        }