public static void RefreshIfOpen()
 {
     if (instance != null)
     {
         instance.Refresh();
     }
 }