internal static void OpenWindow(Rect rect, Vector2 size, FilterContent[] contents)
 {
     _contents   = contents;
     _windowSize = size;
     _current    = new FilterPopup();
     PopupWindow.Show(rect, _current);
 }
 private static void CloseWindow()
 {
     PFilterListCenter.closeWindows -= CloseWindow;
     if (_current != null && _current._window)
     {
         _current._window.Close();
     }
     _current = null;
 }
 private static void OpenWindow(Rect rect, Vector2 windowSize, FilterDisplayMode mode, FilterContent[] contents)
 {
     if (mode == FilterDisplayMode.WINDOW)
     {
         FilterWindow.OpenWindow(contents);
     }
     else
     {
         FilterPopup.OpenWindow(rect, windowSize, contents);
     }
 }
 public override void OnClose()
 {
     if (_window)
     {
         PPaintCenter.ClientRepaints -= _window.Repaint;
     }
     PFilterListCenter.closeWindows -= CloseWindow;
     base.OnClose();
     PFilterListCenter.Stop();
     _current = null;
 }