private void ContextOpenRemoteWith_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; string fileName = GetFileName(); fileName = GetShortFileName(fileName); fileName = Path.GetTempPath() + fileName; Module.HandleConflictsSaveSide(GetFileName(), fileName, "REMOTE"); 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 openWithToolStripMenuItem_Click(object sender, EventArgs e) { string fileName = GetFileName(); OsShellUtil.OpenAs(Path.Combine(Module.WorkingDir, fileName)); }