void DispatchClick(string value) { var projectPath = App.GetCurrentProjectPath(); if (projectPath.IsEmpty()) { App.StatusBar.Text = "Cannot find project paths"; return; } if (IsZebbleModule(value)) { OpenZebbleFile(value, projectPath); } else { if (value.StartsWith("~") || value.StartsWith("/")) { value = projectPath + value.TrimStart("~"); } value = value.Replace('/', Path.DirectorySeparatorChar); } if (File.Exists(value)) { App.ExecuteCommand("File.OpenFile", value); } else { App.StatusBar.Text = "Cannot find " + value; } }