private static void LoadWindow(WrapperFileSystemInfo path, Properties p, object caller, Point?pos)
 {
     p.WindowStartupLocation = WindowStartupLocation.Manual;
     p.Opacity = 1;
     if (pos != null)
     {
         p.Left = pos.Value.X;
         p.Top  = pos.Value.Y;
     }
     if (path != null)
     {
         p.CurrentPath = path.Info.Path;
         if (!path.Type.File)
         {
             CairoExplorerWindow.AsyncGetSizeOfDirectory(path.Info.Path, path, delegate(WrapperFileSystemInfo file, double size, object param)
             {
                 Application.Current.Dispatcher.Invoke(new Action(delegate()
                 {
                     file.ByteSize = size;
                     if (p.CurrentPath == file.Info.Path)
                     {
                         p.InitWithFile(file, caller);
                     }
                 }));
             });
         }
         else
         {
             p.InitWithFile(path, caller);
         }
     }
 }
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (_file != null)
     {
         CairoExplorerWindow.OpenItem(_file.Info.Path, _caller as CairoExplorerWindow, Settings.OpenFoldersInNewWindow);
         Close_btn_MouseUp(sender, null);
     }
 }