示例#1
0
        private async Task LoadSystemStatusByName(string name)
        {
            SystemStatus = await SystemStatusManager.Instance.GetSystemStatusByName(name);

            AttributesCountChanged?.Invoke(SystemStatus?.Attributes?.Count ?? 0);
        }
示例#2
0
        private async Task LoadAccount(Broker broker, string accountName)
        {
            Account = (await PositionManager.Instance.GetAccount(broker, accountName)).ToAccountViewModel();

            AttributesCountChanged?.Invoke(Account?.Attributes?.Count ?? 0);
        }