Method names fix
This commit is contained in:
@@ -145,7 +145,7 @@
|
|||||||
<Compile Include="Services\Implementation\WindowManager.cs" />
|
<Compile Include="Services\Implementation\WindowManager.cs" />
|
||||||
<Compile Include="Services\Interop\User32NativeMethods.cs" />
|
<Compile Include="Services\Interop\User32NativeMethods.cs" />
|
||||||
<Compile Include="Presenters\Implementation\MainFormPresenter.cs" />
|
<Compile Include="Presenters\Implementation\MainFormPresenter.cs" />
|
||||||
<Compile Include="Presenters\ViewCloseRequest.cs" />
|
<Compile Include="Presenters\Interface\ViewCloseRequest.cs" />
|
||||||
<Compile Include="Presenters\Implementation\ViewZoomAnchorConverter.cs" />
|
<Compile Include="Presenters\Implementation\ViewZoomAnchorConverter.cs" />
|
||||||
<Compile Include="View\Interface\IThumbnailViewFactory.cs" />
|
<Compile Include="View\Interface\IThumbnailViewFactory.cs" />
|
||||||
<Compile Include="Services\Interface\IThumbnailManager.cs" />
|
<Compile Include="Services\Interface\IThumbnailManager.cs" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EveOPreview.Mediator.Messages;
|
using EveOPreview.Mediator.Messages;
|
||||||
using EveOPreview.UI;
|
using EveOPreview.Services;
|
||||||
using MediatR;
|
using MediatR;
|
||||||
|
|
||||||
namespace EveOPreview.Mediator.Handlers.Services
|
namespace EveOPreview.Mediator.Handlers.Services
|
||||||
@@ -17,7 +17,7 @@ namespace EveOPreview.Mediator.Handlers.Services
|
|||||||
|
|
||||||
public Task Handle(StartService message, CancellationToken cancellationToken)
|
public Task Handle(StartService message, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
this._manager.Activate();
|
this._manager.Start();
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EveOPreview.Mediator.Messages;
|
using EveOPreview.Mediator.Messages;
|
||||||
using EveOPreview.UI;
|
using EveOPreview.Services;
|
||||||
using MediatR;
|
using MediatR;
|
||||||
|
|
||||||
namespace EveOPreview.Mediator.Handlers.Services
|
namespace EveOPreview.Mediator.Handlers.Services
|
||||||
@@ -17,7 +17,7 @@ namespace EveOPreview.Mediator.Handlers.Services
|
|||||||
|
|
||||||
public Task Handle(StopService message, CancellationToken cancellationToken)
|
public Task Handle(StopService message, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
this._manager.Deactivate();
|
this._manager.Stop();
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace EveOPreview.Presenters
|
|||||||
{
|
{
|
||||||
this._mediator.Send(new StopService()).Wait();
|
this._mediator.Send(new StopService()).Wait();
|
||||||
|
|
||||||
this._thumbnailManager.Deactivate();
|
this._thumbnailManager.Stop();
|
||||||
this._configurationStorage.Save();
|
this._configurationStorage.Save();
|
||||||
request.Allow = true;
|
request.Allow = true;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -57,14 +57,14 @@ namespace EveOPreview.Services
|
|||||||
this._thumbnailUpdateTimer.Interval = new TimeSpan(0, 0, 0, 0, configuration.ThumbnailRefreshPeriod);
|
this._thumbnailUpdateTimer.Interval = new TimeSpan(0, 0, 0, 0, configuration.ThumbnailRefreshPeriod);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Activate()
|
public void Start()
|
||||||
{
|
{
|
||||||
this._thumbnailUpdateTimer.Start();
|
this._thumbnailUpdateTimer.Start();
|
||||||
|
|
||||||
this.RefreshThumbnails();
|
this.RefreshThumbnails();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Deactivate()
|
public void Stop()
|
||||||
{
|
{
|
||||||
this._thumbnailUpdateTimer.Stop();
|
this._thumbnailUpdateTimer.Stop();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ namespace EveOPreview.Services
|
|||||||
{
|
{
|
||||||
public interface IThumbnailManager
|
public interface IThumbnailManager
|
||||||
{
|
{
|
||||||
void Activate();
|
void Start();
|
||||||
void Deactivate();
|
void Stop();
|
||||||
|
|
||||||
void SetThumbnailState(IntPtr thumbnailId, bool hideAlways);
|
void SetThumbnailState(IntPtr thumbnailId, bool hideAlways);
|
||||||
void SetThumbnailsSize(Size size);
|
void SetThumbnailsSize(Size size);
|
||||||
|
|||||||
Reference in New Issue
Block a user