Rename get_ladder_profile PascalCase
This commit is contained in:
1 parent
7b2e19f7c8
commit
49df45574f
2 files changed
+3
-3
No files matched your search
@@ -71,7 +71,7 @@ namespace bts.shell {
|
||||
|
||||
void _show_order_ticket(SecurityMD smd) {
|
||||
var settings_src = _settings_hub.subscribe_default_settings()
|
||||
.Select(s => s.get_ladder_profile(smd.security)?.value ?? LadderSettings.Default);
|
||||
.Select(s => s.GetLadderProfile(smd.security)?.value ?? LadderSettings.Default);
|
||||
var accounts_src = _bus.subscribe(SparkTags.AccountsTag);
|
||||
_show_order_window(new OrderTicket {
|
||||
DataContext = new NewOrderTicketVM(_model, smd, accounts_src, settings_src) {
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace mbts.spark {
|
||||
/// <summary>
|
||||
/// Gets the ladder settings profile for a particular security
|
||||
/// </summary>
|
||||
public static LadderSettingsProfile? get_ladder_profile(
|
||||
public static LadderSettingsProfile? GetLadderProfile(
|
||||
this UserSettings settings, SecurityImmutable security) =>
|
||||
settings.ladder_profiles.FirstOrDefault(lsp =>
|
||||
lsp?.security_criteria?.includes(security) ?? false);
|
||||
@@ -26,7 +26,7 @@ namespace mbts.spark {
|
||||
public static IObservable<AccountTuple?> subscribe_default_account(
|
||||
this UserSettingsHub settings_hub, IBus bus, SecurityImmutable security) {
|
||||
var acc_id_src = settings_hub.subscribe_default_settings().Select(s =>
|
||||
s.get_ladder_profile(security)?.value?.default_account);
|
||||
s.GetLadderProfile(security)?.value?.default_account);
|
||||
return acc_id_src.CombineLatest(
|
||||
bus.subscribe(SparkTags.AccountsTag),
|
||||
(acc_id, accs) => acc_id.HasValue && accs.TryGetValue(acc_id.Value, out var acc_tup) ?
|
||||
|
||||
Reference in new issue
Block a user