protected void XPLengthValue_PropertyChanged(Object sender, PropertyChangedEventArgs e) { var setting = (Setting)sender; if (IsSearchInProgress) { throw new PositionException("Search in progress"); } XPTank.Init(setting.Selection.Value); }
protected void ClearHashButton_Click(Object sender, EventArgs e) { var button = (Button)sender; #if !ThreadSafeTank if (IsSearchInProgress) { throw new PositionException("Search in progress"); } #endif XPTank.Clear(0, XPTank.LookupBuckets); QXPTank.Clear(0, QXPTank.LookupBuckets); }