Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 9, 2023
1 parent c111a86 commit 6a7d955
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/Bundle/Sucrose.Bundle/Main.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Background="#FF29373B" Icon="\Sucrose.Bundle;component\Assets\ICO.ico">

<Grid>
<Image Source="\Sucrose.Bundle;component\Assets\Background11.jpg" Stretch="UniformToFill" Opacity="0.5" />
<Image Source="\Sucrose.Bundle;component\Assets\Background12.jpg" Stretch="UniformToFill" Opacity="0.5" />

<TextBlock Text="{DynamicResource Subtitle}" FontSize="30" FontWeight="Light" Foreground="White"
FontFamily="Segoe UI" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,260,0,0"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Live/Sucrose.Live.WebView/Sucrose.Live.WebView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<ItemGroup>
<PackageReference Include="Skylark.Wing" Version="3.1.1.6" />
<PackageReference Include="Skylark.Standard" Version="3.1.2.1" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2164-prerelease" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2194-prerelease" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net48'))">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,57 @@ public static class BackgroundogSignalService
{
public static async void Handler(object sender, FileSystemEventArgs e)
{
SSIB Data = await SSMI.BackgroundogManager.FileRead<SSIB>(e.FullPath, new());

if (Data.Cpu != null)
if (e != null)
{
SSEMI.CpuData = JsonConvert.SerializeObject(Data.Cpu, Formatting.Indented);
}
SSIB Data = await SSMI.BackgroundogManager.FileRead<SSIB>(e.FullPath, new());

if (Data.Bios != null)
{
SSEMI.BiosData = JsonConvert.SerializeObject(Data.Bios, Formatting.Indented);
}
if (Data != null)
{
if (Data.Cpu != null)
{
SSEMI.CpuData = JsonConvert.SerializeObject(Data.Cpu, Formatting.Indented);
}

if (Data.Date != null)
{
SSEMI.DateData = JsonConvert.SerializeObject(Data.Date, Formatting.Indented);
}
if (Data.Bios != null)
{
SSEMI.BiosData = JsonConvert.SerializeObject(Data.Bios, Formatting.Indented);
}

if (Data.Audio != null)
{
SSEMI.AudioData = JsonConvert.SerializeObject(Data.Audio, Formatting.Indented);
}
if (Data.Date != null)
{
SSEMI.DateData = JsonConvert.SerializeObject(Data.Date, Formatting.Indented);
}

if (Data.Memory != null)
{
SSEMI.MemoryData = JsonConvert.SerializeObject(Data.Memory, Formatting.Indented);
}
if (Data.Audio != null)
{
SSEMI.AudioData = JsonConvert.SerializeObject(Data.Audio, Formatting.Indented);
}

if (Data.Battery != null)
{
SSEMI.BatteryData = JsonConvert.SerializeObject(Data.Battery, Formatting.Indented);
}
if (Data.Memory != null)
{
SSEMI.MemoryData = JsonConvert.SerializeObject(Data.Memory, Formatting.Indented);
}

if (Data.Graphic != null)
{
SSEMI.GraphicData = JsonConvert.SerializeObject(Data.Graphic, Formatting.Indented);
}
if (Data.Battery != null)
{
SSEMI.BatteryData = JsonConvert.SerializeObject(Data.Battery, Formatting.Indented);
}

if (Data.Network != null)
{
SSEMI.NetworkData = JsonConvert.SerializeObject(Data.Network, Formatting.Indented);
}
if (Data.Graphic != null)
{
SSEMI.GraphicData = JsonConvert.SerializeObject(Data.Graphic, Formatting.Indented);
}

if (Data.Motherboard != null)
{
SSEMI.MotherboardData = JsonConvert.SerializeObject(Data.Motherboard, Formatting.Indented);
if (Data.Network != null)
{
SSEMI.NetworkData = JsonConvert.SerializeObject(Data.Network, Formatting.Indented);
}

if (Data.Motherboard != null)
{
SSEMI.MotherboardData = JsonConvert.SerializeObject(Data.Motherboard, Formatting.Indented);
}
}
}
}
}
Expand Down

0 comments on commit 6a7d955

Please sign in to comment.