public string GetTargetPath() { string targetPath; FileOperator.OpenFile(URLExtractor.GetJIRANumberFromURL(), out targetPath); if (targetPath == null) { MessagerEvent?.Invoke(MessageType.ERROR, "Folder location invalid, no JIRA # found"); } return(targetPath); }
private void KeyController_RegisterHotKeyEvent(KeyHandler key, RegisterStatus type) { string registerMsg = string.Empty; switch (type) { case RegisterStatus.FAILURE: registerMsg = string.Format("Register hot keys {0} failed.", key.Key.ToString()); break; case RegisterStatus.SUCCESS: registerMsg = string.Format("Register hot keys {0} succeed.", key.Key.ToString()); break; case RegisterStatus.UNREGISTERED: registerMsg = string.Format("Unregister hot keys {0} succeed.", key.Key.ToString()); break; case RegisterStatus.UNREGISTER_FAILED: registerMsg = string.Format("Unregister hot keys {0} failed.", key.Key.ToString()); break; } MessagerEvent?.Invoke(MessageType.MESSAGE, registerMsg); }