private void chatListBox1_MouseLeaveHead(object sender, ChatListEventArgs e) { this.Text = "Null"; }
private void chatListBox1_MouseEnterHead(object sender, ChatListEventArgs e) { this.Text = e.MouseOnSubItem.DisplayName; }
protected virtual void OnMouseLeaveHead(ChatListEventArgs e) { if (this.MouseLeaveHead != null) MouseLeaveHead(this, e); }
private void chatListBox1_DoubleClickSubItem(object sender, ChatListEventArgs e) { //MessageBox.Show(e.SelectSubItem.DisplayName); WindowsFormsTemplete.ViewTemplete from = new WindowsFormsTemplete.ViewTemplete(e.SelectSubItem.DisplayName); from.Hide(); from.WindowState = FormWindowState.Normal; from.Show(); //Form form = get_class(e.SelectSubItem.DisplayName); //form.Show(); }
protected virtual void OnDoubleClickSubItem(ChatListEventArgs e) { if (this.DoubleClickSubItem != null) DoubleClickSubItem(this, e); }