private void OpenWithToolStripMenuItemClick(object sender, EventArgs e) { if (Unstaged.SelectedItems.Count == 0) return; var item = Unstaged.SelectedItem; var fileName = item.Name; OpenWith.OpenAs(Settings.WorkingDir + fileName.Replace(Settings.PathSeparatorWrong, Settings.PathSeparator)); }
private void ContextOpenRemoteWith_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; string fileName = GetFileName(); fileName = GetShortFileName(fileName); fileName = Path.GetTempPath() + fileName; Settings.Module.HandleConflictsSaveSide(GetFileName(), fileName, "REMOTE"); OpenWith.OpenAs(fileName); Cursor.Current = Cursors.Default; }
private void ContextOpenLocalWith_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; string fileName = GetFileName(); fileName = GetShortFileName(fileName); fileName = Path.GetTempPath() + fileName; GitModule.Current.HandleConflictsSaveSide(GetFileName(), fileName, "LOCAL"); OpenWith.OpenAs(fileName); Cursor.Current = Cursors.Default; }
private void ContextOpenBaseWith_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; string fileName = GetFileName(); fileName = GetShortFileName(fileName); fileName = Path.GetTempPath() + fileName; GitCommandHelpers.HandleConflictsSaveSide(GetFileName(), fileName, "BASE"); OpenWith.OpenAs(fileName); Cursor.Current = Cursors.Default; }
private void openWithToolStripMenuItem_Click(object sender, EventArgs e) { string fileName = GetFileName(); OpenWith.OpenAs(Settings.WorkingDir + fileName); }
private void openWithToolStripMenuItem_Click(object sender, EventArgs e) { string fileName = GetFileName(); OpenWith.OpenAs(GitModule.CurrentWorkingDir + fileName); }