Skip to content

Commit

Permalink
ResourcesHelperService
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkRen committed May 3, 2024
1 parent 75eec07 commit 850f59d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
7 changes: 7 additions & 0 deletions LauncherDM/Services/Interfaces/IResourcesHelperService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace LauncherDM.Services.Interfaces
{
interface IResourcesHelperService
{
static abstract void LocalizationGet(string resource);
}
}
17 changes: 17 additions & 0 deletions LauncherDM/Services/ResourcesHelperService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using LauncherDM.Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LauncherDM.Services
{
class ResourcesHelperService : IResourcesHelperService
{
public static void LocalizationGet(string resource)
{
throw new NotImplementedException();
}
}
}
8 changes: 5 additions & 3 deletions LauncherDM/ViewModels/LoadingWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using LauncherDM.Properties;

namespace LauncherDM.ViewModels
{
Expand Down Expand Up @@ -77,7 +78,8 @@ public LoadingWindowViewModel()
private void Load()
{
ICheckNetworkService checkNetwork = new CheckNetworkService();
ILoadingWindowService Server = new LoadingWindowService();
ILoadingWindowService server = new LoadingWindowService();
IResourcesHelperService resourcesHelper = new ResourcesHelperService();

Task.Run(() =>
{
Expand All @@ -86,9 +88,9 @@ private void Load()
int countMs = 1000;
while (true)
{
if (Server.CheckRequestServer())
if (server.CheckRequestServer())
{
DescInfoConnect = Server.GetTitle();
DescInfoConnect = server.GetTitle();

Thread.Sleep(5000);
_loadingWindow.Dispatcher.Invoke(() =>
Expand Down

0 comments on commit 850f59d

Please sign in to comment.