本文整理汇总了C#中DBManager.GetAllContactsForOwner方法的典型用法代码示例。如果您正苦于以下问题:C# DBManager.GetAllContactsForOwner方法的具体用法?C# DBManager.GetAllContactsForOwner怎么用?C# DBManager.GetAllContactsForOwner使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBManager
的用法示例。
在下文中一共展示了DBManager.GetAllContactsForOwner方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
protected override void OnCreate(Bundle bundle)
{
base.OnCreate (bundle);
SetContentView (Resource.Layout.Conversations);
ImageView btns = FindViewById<ImageView> (Resource.Id.imgNewUserHeader);
TextView header = FindViewById<TextView> (Resource.Id.txtFirstScreenHeader);
RelativeLayout relLayout = FindViewById<RelativeLayout> (Resource.Id.relativeLayout1);
ImageHelper.setupTopPanel (btns, header, relLayout, header.Context);
context = header.Context;
Header.headertext = Application.Context.Resources.GetString (Resource.String.converseMainTitle);
Header.fontsize = 36f;
ImageHelper.fontSizeInfo (header.Context);
header.SetTextSize (Android.Util.ComplexUnitType.Dip, Header.fontsize);
header.Text = Header.headertext;
isMe = AndroidData.CurrentUser.FirstName + " " + AndroidData.CurrentUser.LastName;
mmg = wowZapp.LaffOutOut.Singleton.mmg;
dbm = wowZapp.LaffOutOut.Singleton.dbm;
contentPackItems = new Dictionary<int,ContentPackItem> ();
voiceFiles = new Dictionary<int,string> ();
pollingSteps = new Dictionary<int,PollingStep> ();
contacts = new Dictionary<Guid,ContactDB> ();
mmg.MessageSendConfirmCompleted += MessageManager_MessageSendConfirmCompleted;
wowZapp.LaffOutOut.Singleton.ReceivedMessages += AppDelegate_ReceivedMessages;
ImageButton btnAdd = FindViewById<ImageButton> (Resource.Id.btnAdd);
btnAdd.Tag = 2;
ImageButton btnHome = FindViewById<ImageButton> (Resource.Id.btnHome);
btnHome.Tag = 1;
ImageButton btnBack = FindViewById<ImageButton> (Resource.Id.btnBack);
btnBack.Tag = 0;
LinearLayout bottom = FindViewById<LinearLayout> (Resource.Id.bottomHolder);
ImageButton[] buttons = new ImageButton[3];
buttons [0] = btnBack;
buttons [1] = btnHome;
buttons [2] = btnAdd;
ImageHelper.setupButtonsPosition (buttons, bottom, context);
if (ConversationsUtil.userFrom != null) {
UserDB lastFrom = ConversationInfo.GetSenderOfOldestMessage ();
if (lastFrom == null)
lastFrom = ConversationInfo.GetAllConversationParticipants () [0];
Header.headertext = ConversationInfo.GetConversationPartipantsNameTitle ();
Header.fontsize = 36f;
ImageHelper.fontSizeInfo (header.Context);
header.SetTextSize (Android.Util.ComplexUnitType.Dip, Header.fontsize);
header.Text = Header.headertext;
LinearLayout ll4 = FindViewById<LinearLayout> (Resource.Id.linearLayout4);
btnAdd.Visibility = ViewStates.Invisible;
btnBack.Visibility = ViewStates.Invisible;
Button btnAll = new Button (context);
Rect rect = new Rect ();
btnHome.GetDrawingRect (rect);
int xLeft = rect.Left;
int yTop = rect.Top;
btnAll.Visibility = ViewStates.Invisible;
btnAll.SetWidth (400);
btnAll.SetHeight (200);
btnAll.Gravity = GravityFlags.CenterVertical;
btnAll.Layout (xLeft, yTop, 400, 200);
btnAll.SetPadding (30, 20, 30, 20);
btnAll.SetTextColor (Color.Black);
btnAll.Text = Application.Context.Resources.GetString (Resource.String.converseShowAllBtn);
btnAll.Click += new EventHandler (btnAll_Click);
ll4.AddView (btnAll);
ll4.Invalidate ();
}
RunOnUiThread (delegate {
contacts = dbm.GetAllContactsForOwner (AndroidData.CurrentUser.AccountID.ToString ()).ToDictionary (s => s.ContactAccountID, s => s);
GetMessageRows ();
});
}