{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 79086.  First binary with this fix&#58;  v1.9.1.6",
    "ClosedDate": "2011-06-13T21:20:18.19-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "The sample DotNetZip Win Forms App allows the selection of split size when creating archives, but the selection is not used, and becomes \"-none-\".  Bug is improper parsing of the menu selection text.  For example, the text of the actual selections end with \"kb\", but the parsing code only handles endings with \"k\" or \"m\".  There's more terse ways to express this, but a possible suggested code replacement (v 1.9.1.5) is to ZipForm.cs approx line 322.  Also supports \"GB\".\n            string arg = this.comboSplit.SelectedItem.ToString().ToUpper();\n \n            try\n            {\n                if (arg.EndsWith(\"K\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0,arg.Length-1)) * 1024;\n                else if (arg.EndsWith(\"KB\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0, arg.Length - 2)) * 1024;\n                else if (arg.EndsWith(\"M\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0,arg.Length-1)) * 1024 * 1024;\n                else if (arg.EndsWith(\"MB\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0, arg.Length - 2)) * 1024 * 1024;\n                else if (arg.EndsWith(\"G\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0, arg.Length - 1)) * 1024 * 1024 * 1024;\n                else if (arg.EndsWith(\"GB\"))\n                    options.MaxSegmentSize = Int32.Parse(arg.Substring(0, arg.Length - 2)) * 1024 * 1024 * 1024;\n                else\n                    options.MaxSegmentSize = Int32.Parse(arg);\n            }\n            catch\n            {\n                // just reset to \"none\"\n                this.comboSplit.SelectedIndex = 0;\n                options.MaxSegmentSize = 0;\n            }",
    "LastUpdatedDate": "2013-05-16T05:31:43.47-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-09-23T11:58:45.997-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Tools/WinFormApp does not correctly create split archives",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 11999
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Good bug, thanks for catching this. ",
      "PostedDate": "2011-06-13T21:18:21.753-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T21:19:13.79-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T21:20:18.19-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:25.72-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:43.47-07:00",
      "Id": -2147483648
    }
  ]
}