Cargo console to XAML (#4973)

* Add and rename files

* CargoConsoleOrderMenu to XAML

* Cleanup imports

* Add and rename files

* CargoConsoleMenu to XAML

* Improve code

* CargoOrderRow/CargoProductRow to seperate files

* CargoOrderRow to XAML

* CargoProductRow to XAML
This commit is contained in:
Visne
2021-10-22 11:53:18 +02:00
committed by GitHub
parent 0e7c5eaac6
commit 86607e4fd6
12 changed files with 444 additions and 588 deletions

View File

@@ -9,8 +9,8 @@ namespace Content.Client.Cargo.UI
{
private readonly ItemList _accounts;
private int _accountCount;
private string[] _accountNames = new string[] { };
private int[] _accountIds = new int[] { };
private string[] _accountNames = System.Array.Empty<string>();
private int[] _accountIds = System.Array.Empty<int>();
private int _selectedAccountId = -1;
public GalacticBankSelectionMenu(CargoConsoleBoundUserInterface owner)
@@ -20,7 +20,7 @@ namespace Content.Client.Cargo.UI
Title = Loc.GetString("galactic-bank-selection-menu-title");
_accounts = new ItemList() { SelectMode = ItemList.ItemListSelectMode.Single };
_accounts = new ItemList { SelectMode = ItemList.ItemListSelectMode.Single };
Contents.AddChild(_accounts);
}