This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BroadcastReceiver] | |
public class PrattleSmsReceiver : BroadcastReceiver | |
{ | |
Repository<SmsMessage> _messageRepo; | |
public override void OnReceive (Context context, Intent intent) | |
{ | |
var message = new SmsMessage { | |
Text = intent.GetStringExtra ("messageText"), | |
SmsGroupId = intent.GetIntExtra ("smsGroupId", -1), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListView.ItemLongClick += delegate(object sender, AdapterView.ItemLongClickEventArgs e) { | |
//action context menu already displayed | |
if (_actionMode != null) | |
return; | |
var callback = new MessageAction(Activity.GetString(Resource.String.message_action_title), | |
Activity.GetString(Resource.String.message_action_subtitle)); | |
callback.DeleteActionHandler += delegate { | |
DeleteMessage (_sortedItems[e.Position]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class MessageAction: Java.Lang.Object, ActionMode.ICallback | |
{ | |
string _title; | |
string _subTitle; | |
public event EventHandler<EventArgs> DeleteActionHandler; | |
public event EventHandler<EventArgs> ViewActionHandler; | |
public event EventHandler<EventArgs> DestroyActionHandler; | |
public MessageAction (string title, string subTitle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Castle.Core.Logging; | |
using System; | |
namespace Demo.Domain | |
{ | |
public class Bank : LookupItem | |
{ | |
public virtual string DivisionCode { get; set; } | |
public virtual string AccountType { get; set; } | |
public virtual string AccountNumber { get; set; } |
NewerOlder