Updated to allow passing of data to overlay view creation.
This commit is contained in:
@@ -14,6 +14,13 @@ namespace osrs_toolbox
|
|||||||
InitializeTimer();
|
InitializeTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CompetitionOverlayViewModel(string Username, int GroupID, int CompetitionID)
|
||||||
|
{
|
||||||
|
InitializeVariables(Username, GroupID, CompetitionID);
|
||||||
|
InitializeCommands();
|
||||||
|
InitializeTimer();
|
||||||
|
}
|
||||||
|
|
||||||
private void InitializeVariables()
|
private void InitializeVariables()
|
||||||
{
|
{
|
||||||
CompetitionID = 80030;
|
CompetitionID = 80030;
|
||||||
@@ -27,6 +34,19 @@ namespace osrs_toolbox
|
|||||||
HideZeroKC = false;
|
HideZeroKC = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitializeVariables(string Username, int GroupID, int CompetitionID)
|
||||||
|
{
|
||||||
|
this.CompetitionID = CompetitionID;
|
||||||
|
this.GroupID = GroupID;
|
||||||
|
PlayerName = Username;
|
||||||
|
TestOutput = string.Empty;
|
||||||
|
GridOutput = new StackPanel();
|
||||||
|
ControlsVisible = Visibility.Visible;
|
||||||
|
ToggleButtonText = "V";
|
||||||
|
HideOtherPlayers = false;
|
||||||
|
HideZeroKC = false;
|
||||||
|
}
|
||||||
|
|
||||||
private void InitializeCommands()
|
private void InitializeCommands()
|
||||||
{
|
{
|
||||||
Update = new RelayCommand(DoUpdate);
|
Update = new RelayCommand(DoUpdate);
|
||||||
|
Reference in New Issue
Block a user