Skip to content

Commit 82541d4

Browse files
committed
Some more small fixes
1 parent 8c24c2e commit 82541d4

File tree

4 files changed

+35
-20
lines changed

4 files changed

+35
-20
lines changed

CSediaPlayer/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Application x:Class="WpfApp1.App"
1+
<Application x:Class="CSediaPlayer.App"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:local="clr-namespace:WpfApp1"

CSediaPlayer/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Windows;
22

3-
namespace WpfApp1
3+
namespace CSediaPlayer
44
{
55
/// <summary>
66
/// Interaction logic for App.xaml

CSediaPlayer/CSediaPlayer.csproj

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<WarningLevel>4</WarningLevel>
1515
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1616
<IsWebBootstrapper>false</IsWebBootstrapper>
17-
<PublishUrl>publish\</PublishUrl>
17+
<PublishUrl>C:\Users\Peter\Finished Projects\</PublishUrl>
1818
<Install>true</Install>
1919
<InstallFrom>Disk</InstallFrom>
2020
<UpdateEnabled>false</UpdateEnabled>
@@ -24,9 +24,10 @@
2424
<UpdatePeriodically>false</UpdatePeriodically>
2525
<UpdateRequired>false</UpdateRequired>
2626
<MapFileExtensions>true</MapFileExtensions>
27-
<ApplicationRevision>0</ApplicationRevision>
27+
<ApplicationRevision>1</ApplicationRevision>
2828
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
2929
<UseApplicationTrust>false</UseApplicationTrust>
30+
<PublishWizardCompleted>true</PublishWizardCompleted>
3031
<BootstrapperEnabled>true</BootstrapperEnabled>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -49,6 +50,18 @@
4950
<ErrorReport>prompt</ErrorReport>
5051
<WarningLevel>4</WarningLevel>
5152
</PropertyGroup>
53+
<PropertyGroup>
54+
<ManifestCertificateThumbprint>6CB857AEC4E551A63EBA001224BF0AB70A42CF0A</ManifestCertificateThumbprint>
55+
</PropertyGroup>
56+
<PropertyGroup>
57+
<ManifestKeyFile>CSediaPlayer_TemporaryKey.pfx</ManifestKeyFile>
58+
</PropertyGroup>
59+
<PropertyGroup>
60+
<GenerateManifests>true</GenerateManifests>
61+
</PropertyGroup>
62+
<PropertyGroup>
63+
<SignManifests>true</SignManifests>
64+
</PropertyGroup>
5265
<ItemGroup>
5366
<Reference Include="System" />
5467
<Reference Include="System.Data" />
@@ -101,6 +114,7 @@
101114
<Generator>ResXFileCodeGenerator</Generator>
102115
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
103116
</EmbeddedResource>
117+
<None Include="CSediaPlayer_TemporaryKey.pfx" />
104118
<None Include="Properties\Settings.settings">
105119
<Generator>SettingsSingleFileGenerator</Generator>
106120
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

CSediaPlayer/MainWindow.xaml.cs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ private void SongSelect()
5858
if (file.ShowDialog() == true)
5959
{
6060
path = file.FileName;
61-
}
62-
Console.WriteLine(path);
63-
player.URL = path;
64-
Current_Playing.Text = player.currentMedia.name;
61+
Console.WriteLine(path);
62+
player.URL = path;
63+
Current_Playing.Text = player.currentMedia.name;
64+
}
65+
6566

6667

6768
}
@@ -71,24 +72,24 @@ private void Looper()
7172
{
7273
if (FirstRun)
7374
{
74-
Thread.Sleep(50);
75+
//Thread.Sleep(500);
7576
FirstRun = false;
7677
}
7778
while (true)
7879
{
7980
System.Threading.Thread.Sleep(100);
80-
81-
82-
if (player.currentMedia.duration > 1 && player.controls.currentPosition > 1)
83-
{
84-
this.Dispatcher.Invoke(() =>
85-
{
81+
82+
this.Dispatcher.Invoke(() =>
83+
{
84+
if (player.currentMedia.duration > 1 && player.controls.currentPosition > 1)
85+
{
86+
8687
UpdateSongPosition();
87-
});
88-
}
89-
90-
91-
}
88+
89+
}
90+
});
91+
92+
}
9293
}
9394

9495
private void UpdateSongPosition()

0 commit comments

Comments
 (0)