This commit is contained in:
parent
4179143fdb
commit
8c6df57fb1
@ -9,9 +9,10 @@ namespace Sledgemapper.UI
|
||||
{
|
||||
public partial class CampaignList
|
||||
{
|
||||
private readonly CommunicationManager CommunicationManager;
|
||||
private readonly TinyMessengerHub Messenger;
|
||||
private bool campaignSelected;
|
||||
private CommunicationManager CommunicationManager { get; }
|
||||
private TinyMessengerHub Messenger { get; }
|
||||
|
||||
private bool _campaignSelected;
|
||||
|
||||
public CampaignList(CommunicationManager communicationManager, TinyMessengerHub messenger)
|
||||
{
|
||||
@ -27,9 +28,9 @@ namespace Sledgemapper.UI
|
||||
|
||||
BtnLoadCampaign.Click += (s, e) =>
|
||||
{
|
||||
if (campaignSelected)
|
||||
if (_campaignSelected)
|
||||
{
|
||||
campaignSelected = false;
|
||||
_campaignSelected = false;
|
||||
Messenger.Publish(new CampaignSelectedMessage(this));
|
||||
this.GetContainingWindow().Close();
|
||||
}
|
||||
@ -63,7 +64,7 @@ namespace Sledgemapper.UI
|
||||
currentItem.Background = new SolidBrush("#D9D9D9FF");
|
||||
}
|
||||
item.Background = new SolidBrush(Settings.Instance.OverlayTintColor);
|
||||
campaignSelected = true;
|
||||
_campaignSelected = true;
|
||||
}
|
||||
|
||||
public async Task LoadCampaigns()
|
||||
|
Loading…
Reference in New Issue
Block a user