protected void OnItemActivated(object sender, ItemActivatedArgs args) { // Get File Path & IsDirectory Flag bool isDir = store.GetIsDirectory(args.Path); string path = store.GetFilePath(args.Path); if (isDir == true) { // Replace Parent With Path and ReFill The Model currentDirectory = new DirectoryInfo(path); // Refresh FileStore Gtk.Application.Invoke(delegate { Refresh(); }); // Sensitize the up button if (DirChanged != null) { DirChanged(this, true); } } else if (userInfo == MyInfo.GetInstance()) { try { // Try To Open This File System.Diagnostics.Process.Start(path); } catch (Exception e) { Debug.Log("Failed Process.Start() {0}: {1}", path, e.Message); } } }
protected void OnItemActivated(object sender, ItemActivatedArgs args) { // Get File Path & IsDirectory Flag bool isDir = store.GetIsDirectory(args.Path); string path = store.GetFilePath(args.Path); if (isDir == true) { // Replace Parent With Path and ReFill The Model currentDirectory = new DirectoryInfo(path); // Refresh FileStore Gtk.Application.Invoke(delegate { Refresh(); }); // Sensitize the up button if (DirChanged != null) { DirChanged(this, true); } } }