private DimensionEventArgs ParseResults(string _inpstr) { string len = "0"; string wid = "0"; string hei = "0"; DimensionEventArgs parseres; Match match = RegexResulth.Match(_inpstr); if (match.Success) { len = match.Groups["leght"].Value; wid = match.Groups["width"].Value; hei = match.Groups["height"].Value; } else { throw new Exception(Resurses.Error1); } parseres = new DimensionEventArgs(Convert.ToDouble(len) / 10, Convert.ToDouble(wid) / 10, Convert.ToDouble(hei) / 10); return(parseres); }
protected virtual void OnDimensionScan(DimensionEventArgs _MyEventParameters) { if (ScanDimensionEvent != null) { ScanDimensionEvent(_MyEventParameters); } }