private void ShowWaitWindow()
        {
            if (ww == null)
                ww = new WaitWindow();

            ww.Reset();

            ww.OnButtonCancelClick += new EventHandler(ww_OnButtonCancelClick);
            ww.Show();
        }
 private void HideWaitWindow()
 {
     inSearch = false;
        if(ww != null) ww.Hide();
     ww = null;
 }