private void openWithToolStripMenuItem_Click(object sender, EventArgs e) { if (tvGitTree.SelectedNode?.Tag is GitItem gitItem && gitItem.ObjectType == GitObjectType.Blob) { var fileName = _fullPathResolver.Resolve(gitItem.FileName); OsShellUtil.OpenAs(fileName.ToNativePath()); } }
private void openFileWithToolStripMenuItem_Click(object sender, EventArgs e) { var fileName = SaveSelectedItemToTempFile(); if (fileName != null) { OsShellUtil.OpenAs(fileName); } }
private void diffOpenWorkingDirectoryFileWithToolStripMenuItem_Click(object sender, EventArgs e) { if (DiffFiles.SelectedItem == null) { return; } var fileName = _fullPathResolver.Resolve(DiffFiles.SelectedItem.Name); OsShellUtil.OpenAs(fileName.ToNativePath()); }
private void openWithToolStripMenuItem_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); OsShellUtil.OpenAs(fileName.ToNativePath()); }
private void OpenSideWith(string side) { Cursor.Current = Cursors.WaitCursor; var conflictData = GetConflict(); string fileName = conflictData.Filename; fileName = PathUtil.GetFileName(fileName); fileName = Path.GetTempPath() + fileName; if (!Module.HandleConflictsSaveSide(conflictData.Filename, fileName, side)) MessageBox.Show(this, _failureWhileOpenFile.Text); OsShellUtil.OpenAs(fileName); Cursor.Current = Cursors.Default; }
private void OpenSideWith(string side) { Cursor.Current = Cursors.WaitCursor; string fileName = GetFileName(); fileName = GetShortFileName(fileName); fileName = Path.GetTempPath() + fileName; if (!Module.HandleConflictsSaveSide(GetFileName(), fileName, side)) { MessageBox.Show(this, _failureWhileOpenFile.Text); } OsShellUtil.OpenAs(fileName); Cursor.Current = Cursors.Default; }
private void OpenSideWith(string side) { using (WaitCursorScope.Enter()) { var conflictData = GetConflict(); string fileName = conflictData.Filename; fileName = PathUtil.GetFileName(fileName); fileName = Path.GetTempPath() + fileName; if (!Module.HandleConflictsSaveSide(conflictData.Filename, fileName, side)) { MessageBox.Show(this, _failureWhileOpenFile.Text); } OsShellUtil.OpenAs(fileName); } }
private void openWithToolStripMenuItem_Click(object sender, EventArgs e) { string fileName = GetFileName(); OsShellUtil.OpenAs(Path.Combine(Module.WorkingDir, fileName)); }
private void openWithToolStripMenuItem_Click(object sender, EventArgs e) { string fileName = GetFileName(); OsShellUtil.OpenAs(_fullPathResolver.Resolve(fileName)); }