public UserOnlineList(ABCChatScreen form) { ChatScreen = form; InitializeComponent(); lstAllUsers = new BindingList <ABCUserInfo>(ABCUserProvider.GetAllUsers(true, true)); this.gridControl1.DataSource = lstAllUsers; this.gridControl1.RefreshDataSource(); this.gridView1.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(gridView1_CustomDrawCell); this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsSelection.EnableAppearanceFocusedRow = false; this.gridView1.Click += new EventHandler(gridView1_Click); this.gridView1.MouseMove += new MouseEventHandler(gridView1_MouseMove); this.gridView1.RowCellStyle += new RowCellStyleEventHandler(gridView1_RowCellStyle); this.gridView1.ExpandAllGroups(); btnShowOnlineOnly.Checked = false; ChangeView(false); btnSoundOn.Checked = true; ChangeSoundOnOff(true); Timer timer = new Timer(); timer.Interval = 15000; timer.Tick += new EventHandler(timer_Tick); timer.Start(); }
public void InitChat( ) { ChatScreen = new ABCChatScreen( ); UserList = new UserOnlineList(ChatScreen); UserList.Dock = DockStyle.Fill; this.dockPanelUser_Container.Controls.Add(UserList); }
public ABCChatBox(ABCChatScreen form, String strUser2) { ChatScreen = form; this.IsSizeable = true; ChatArea = new ABCChatArea(this, strUser2); this.Size = ChatArea.Size; ChatArea.Dock = DockStyle.Fill; this.Controls.Add(ChatArea); this.MouseMove += new MouseEventHandler(ABCChatBox_MouseMove); }