public void LoadFriendList(IList<MyFriend> fs)
 {
     FriendListView fsss = new FriendListView();
     foreach (var item in fs)
     {
         fsss.Add(item);
     }
     this.Friends = fsss;
 }
Пример #2
0
    // =========================================================================================================================
    protected override void OnViewInit()
    {
        base.OnViewInit();

        m_ScreenPivot  = MFGuiManager.Instance.GetPivot("SelectFriend_Dialog");
        m_ScreenLayout = m_ScreenPivot.GetLayout("SelectFriend_Layout");

        //GUIBase_Button prevButton	= PrepareButton(m_ScreenLayout, "Prev_Button",	null, null);
        //GUIBase_Button nextButton	= PrepareButton(m_ScreenLayout, "Next_Button",	null, null);
        m_BestButton = PrepareButton(m_ScreenLayout, "Best_Button", null, Delegate_SelectBest);

        //prevButton.autoColorLabels        = true;
        //nextButton.autoColorLabels        = true;
        m_BestButton.autoColorLabels = true;

        GUIBase_List list = GetWidget(m_ScreenLayout, "Table").GetComponent <GUIBase_List>();

        m_FriendsView = gameObject.AddComponent <FriendListView>();
        //m_FriendsView.m_OnFriendSelectDelegate = Delegate_OnSelect;
        m_FriendsView.GUIView_Init(this, m_ScreenLayout, list /*, prevButton, nextButton*/);
    }
 public FriendListForm()
 {
     InitializeComponent();
     Friends = new FriendListView();
 }