public PlayerWindow()
 {
     InitializeComponent();
     PlaylistWindow = new PlaylistWindow();
     NativeWindow natRef = new NativeWindow();
     natRef.AssignHandle(this.Handle);
     PlaylistWindow.Show(natRef);
     PlaylistWindow.Visible = false;
     Rectangle ScreenBounds = Screen.FromHandle(this.Handle).Bounds;
     Program.snappingManager.bounds[IntPtr.Zero] = ScreenBounds;
     trackBar1_ValueChanged(trackBar1, null);
 }
        public PlayerWindow()
        {
            InitializeComponent();
            PlaylistWindow = new PlaylistWindow();
            NativeWindow natRef = new NativeWindow();

            natRef.AssignHandle(this.Handle);
            PlaylistWindow.Show(natRef);
            PlaylistWindow.Visible = false;
            Rectangle ScreenBounds = Screen.FromHandle(this.Handle).Bounds;

            Program.snappingManager.bounds[IntPtr.Zero] = ScreenBounds;
            trackBar1_ValueChanged(trackBar1, null);
        }