public static FileOpenFromMenu ( object sender, string file ) : void | ||
sender | object | |
file | string | |
return | void |
/// <summary> /// Handler for the view file menus. /// The tag of the sender specifies the operation on a selected file: null will open a file /// using the default association, while any other tag specifies a program to run. /// </summary> private void MenuViewEditClick(object sender, EventArgs e) { // Create a temp file on the selected git file version string temp = GetTempFile(file, listRev.SelectedItems[0].Name); if (!string.IsNullOrEmpty(temp)) { ClassUtils.FileOpenFromMenu(sender, temp); } }