async partial void AddNewAddress(NSSegmentedControl sender) { int tag = sender.Cell.GetTag(sender.SelectedSegment); if (!Wallet.IsLocked && Enum.IsDefined(typeof(AddSegment), tag)) { switch ((AddSegment)tag) { case AddSegment.AddPrompt: break; case AddSegment.QuickAdd: var newAddress = await Wallet.GenerateAddressAsync(); AddressTableData.Reload(); break; } } }
void Initialize(Wallet wallet = null) { wallet.DidLock += LockToggled; wallet.DidUnlock += LockToggled; AddressTableData = new AddressTableData(wallet); }
void Initialize(AddressTableData data) { Data = data; }
public AddressDataSource(AddressTableData data) { Initialize(data); }
public AddressDelegate(AddressTableData data) { Initialize(data); }
void Initialize(Wallet wallet = null) { wallet.DidLock += LockToggled; wallet.DidUnlock += LockToggled; AddressTableData = new AddressTableData(wallet); }
void Initialize(AddressTableData data) { Data = data; }
public AddressDelegate(AddressTableData data) { Initialize(data); }
public AddressDataSource(AddressTableData data) { Initialize(data); }