private void messageBar_Click(object s, EventArgs e)
 {
     LinearLayout senderObj = (LinearLayout)s;
     string conID = senderObj.ContentDescription;
     MessageDB message = new MessageDB();
     message = dbm.GetMessage(conID);
     MessageReceived player = new MessageReceived(message, context);
 }
 private void random_Click(object s, EventArgs e)
 {
     ImageView senderObj = (ImageView)s;
     string conID = senderObj.ContentDescription;
     MessageDB message = new MessageDB();
     message = dbm.GetMessage(conID);
     MessageReceived player = new MessageReceived(message, context);
 }
        private void btnPlay_Click(object s, EventArgs e)
        {
            if (readOnly == true)
            {
                MessageReceived player = new MessageReceived(ComposeMessageMainUtil.messageDB, context, true);
                return;
            }
            int i = 0;
            MessageDB tmpMessage = new MessageDB();
            tmpMessage.FromAccountID = AndroidData.CurrentUser.AccountID;
            tmpMessage.MessageStepDBList = new List<MessageStepDB>();
            tmpMessage.MessageRecipientDBList = new List<MessageRecipientDB>();
            for (i = 0; i < ComposeMessageMainUtil.msgSteps.Count; ++i)
            {
                tmpMessage.MessageStepDBList.Add(MessageStepDB.ConvertFromMessageStep(ComposeMessageMainUtil.msgSteps [i]));
                tmpMessage.MessageStepDBList [i].ContentPackItemID = ComposeMessageMainUtil.contentPackID [i];
            }
            for (i = 0; i < Contacts.SelectContactsUtil.selectedContacts.Count; ++i)
            {
                tmpMessage.MessageRecipientDBList.Add(new MessageRecipientDB());
                tmpMessage.MessageRecipientDBList [i].AccountGuid = Contacts.SelectContactsUtil.selectedContacts [i].ContactGuid;
            }

            MessageReceived play = new MessageReceived(tmpMessage, context);

            return;
        }