Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }