public static Parse ( string str ) : |
||
str | string | |
return |
public string GetCommitMessage( IntPtr hParentWnd, string parameters, string commonRoot, string[] pathList, string originalMessage) { return(GetCommitMessage(WindowHandleWrapper.TryCreate(hParentWnd), Parameters.Parse(parameters), originalMessage)); }
public string GetCommitMessage2(IntPtr hParentWnd, string parameters, string commonURL, string commonRoot, string[] pathList, string originalMessage, string bugID, out string bugIDOut, out string[] revPropNames, out string[] revPropValues) { bugIDOut = bugID; Parameters p = Parameters.Parse(parameters); if (p.Project.Length == 0) { // we can extract the project name from the url, e.g.: // https://gurtle.googlecode.com/svn/trunk // the project name is the first part of the domain Uri url = new Uri(commonURL); string projectName = url.Host.Substring(0, url.Host.IndexOf('.')); parameters += " project=" + projectName; } // If no revision properties are to be set, // the plug-in MUST return empty arrays. revPropNames = new string[0]; revPropValues = new string[0]; return(GetCommitMessage(WindowHandleWrapper.TryCreate(hParentWnd), Parameters.Parse(parameters), originalMessage)); }
public static string ShowOptionsDialog(IWin32Window parentWindow, string parameterString) { Parameters parameters; try { parameters = Parameters.Parse(parameterString); } catch (ParametersParseException e) { MessageBox.Show(e.Message, "Invalid Parameters", MessageBoxButtons.OK, MessageBoxIcon.Error); return(parameterString); } var dialog = new OptionsDialog { Parameters = parameters }; return(dialog.ShowDialog(parentWindow) == DialogResult.OK ? dialog.Parameters.ToString() : parameterString); }