public CreateAdvancedTeamForm(TeamList teamList) { InitializeComponent(); joinModeCombox.SelectedIndex = 1; neddAgreeCombox.SelectedIndex = 0; inviteModeCombox.SelectedIndex = 0; modifyModeCombox.SelectedIndex = 0; modifyPropertyModeCombox.SelectedIndex = 0; _teamlist = teamList; }
private FriendsListForm() { InitializeComponent(); this.Load += FriendsListForm_Load; this.FormClosing += FriendsListForm_FormClosing; this.FormClosed += FriendsListForm_FormClosed; RegisterClientCallback(); listView1.ShowGroups = true; listView1.Groups.AddRange(_groups); _teamList = new Team.TeamList(TeamListView); _sessionList = new SessionList(chatListView); _recentSessionList = new RecentSessionList(recentSessionListbox); this.HandleCreated += FriendsListForm_HandleCreated; _actionWrapper = new InvokeActionWrapper(this); tabControl1.Selected += TabControl1_Selected; NIM.NIMSubscribeApi.RegPushEventCb(OnSubscribedEventChanged); NIM.NIMSubscribeApi.RegBatchPushEventCb(OnBatchSubscribedEventChanged); }