Skip to content

Commit 234645f

Browse files
committed
πŸŽ‰πŸŽ‰πŸŽ‰ Fix lag when scroll list music & Fix missing packages
1 parent 30d6c3f commit 234645f

11 files changed

Lines changed: 61 additions & 15 deletions

β€ŽMusic/App.configβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<configuration>
33
<configSections>
44

5-
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
66
<section name="Music.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
77
</sectionGroup>
88

β€ŽMusic/Music.csprojβ€Ž

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</PropertyGroup>
6161
<ItemGroup>
6262
<Reference Include="Bunifu_UI_v1.52">
63-
<HintPath>..\..\..\UI for Visual Studio 2017\Bunifu_UI_v1.52.dll</HintPath>
63+
<HintPath>..\packages\Bunifu_UI_v1.52.dll</HintPath>
6464
</Reference>
6565
<Reference Include="Fizzler, Version=1.1.21209.0, Culture=neutral, PublicKeyToken=4ebff4844e382110, processorArchitecture=MSIL">
6666
<HintPath>..\packages\Fizzler.1.1.0\lib\net35\Fizzler.dll</HintPath>
@@ -71,8 +71,8 @@
7171
<Reference Include="HtmlAgilityPack, Version=1.8.4.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
7272
<HintPath>..\packages\HtmlAgilityPack.1.8.4\lib\Net45\HtmlAgilityPack.dll</HintPath>
7373
</Reference>
74-
<Reference Include="MaterialSkin">
75-
<HintPath>..\..\..\UI for Visual Studio 2017\MaterialSkin.0.2.1\lib\MaterialSkin.dll</HintPath>
74+
<Reference Include="MaterialSkin, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
75+
<HintPath>..\packages\MaterialSkin.0.2.1\lib\MaterialSkin.dll</HintPath>
7676
</Reference>
7777
<Reference Include="MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a, processorArchitecture=MSIL">
7878
<HintPath>..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.dll</HintPath>
@@ -103,6 +103,9 @@
103103
</Reference>
104104
</ItemGroup>
105105
<ItemGroup>
106+
<Compile Include="TFlowLayoutPanel.cs">
107+
<SubType>Component</SubType>
108+
</Compile>
106109
<Compile Include="uAbout.cs">
107110
<SubType>UserControl</SubType>
108111
</Compile>

β€ŽMusic/SongInfo.csβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ internal void SetPath(string filePath)
109109
{
110110
if (file != null)
111111
file.Dispose();
112-
this.file = TagLib.File.Create(filePath);
112+
try
113+
{
114+
this.file = TagLib.File.Create(filePath);
115+
}catch
116+
{
117+
118+
}
113119
}
114120

115121
#endregion

β€ŽMusic/TFlowLayoutPanel.csβ€Ž

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ο»Ώusing System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows.Forms;
7+
8+
namespace Music
9+
{
10+
class TFlowLayoutPanel : FlowLayoutPanel
11+
{
12+
public TFlowLayoutPanel() : base()
13+
{
14+
this.DoubleBuffered = true;
15+
this.SetStyle(ControlStyles.UserPaint, true);
16+
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
17+
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
18+
}
19+
20+
protected override void OnScroll(ScrollEventArgs se)
21+
{
22+
this.Invalidate();
23+
base.OnScroll(se);
24+
}
25+
26+
protected override CreateParams CreateParams
27+
{
28+
get
29+
{
30+
CreateParams cp = base.CreateParams;
31+
cp.ExStyle |= 0x02000000; // WS_CLIPCHILDREN
32+
return cp;
33+
}
34+
}
35+
}
36+
}

β€ŽMusic/packages.configβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<package id="Fizzler" version="1.1.0" targetFramework="net461" />
44
<package id="Fizzler.Systems.HtmlAgilityPack" version="1.1.1" targetFramework="net461" />
55
<package id="HtmlAgilityPack" version="1.8.4" targetFramework="net461" />
6+
<package id="MaterialSkin" version="0.2.1" targetFramework="net461" />
67
<package id="MetroModernUI" version="1.4.0.0" targetFramework="net461" />
78
<package id="taglib" version="2.1.0.0" targetFramework="net461" />
89
</packages>

β€ŽMusic/uMyMusic.Designer.csβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽMusic/uNowPlaying.Designer.csβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽMusic/uPlaylist.Designer.csβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽMusic/uPlaylistDetail.Designer.csβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽMusic/uResults.Designer.csβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)