protected void OnSubItemBeginEditing(SubItemEventArgs e) { if (SubItemBeginEditing != null) { SubItemBeginEditing(this, e); } }
protected void OnSubItemClicked(SubItemEventArgs e) { if (SubItemClicked != null) { SubItemClicked(this, e); } }
protected void OnListClicked(SubItemEventArgs e) { if (ListClicked != null) { ListClicked(this, e); } }
private void OnSubItemClicked(object sender, ListViewEx.SubItemEventArgs e) { Control c = null; LVE.ListViewEx lv = sender as LVE.ListViewEx; if (lv == lvGroups) { c = m_cellText; m_prevGroupName = e.Item.Text; } else { if (e.SubItem == 0) { c = m_cellCombo; m_cellCombo.Items.Clear(); string[] groups = (from lvi in lvGroups.Items.Cast <ListViewItem>() select lvi.Text).ToArray(); Array.Sort <string>(groups); m_cellCombo.Items.AddRange(groups); } else { c = m_cellText; } } lv.StartEditing(c, e.Item, e.SubItem); }
private void ExitlistViewEx_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e) { try { if (m_ChannelExitMouseDownType == 1)//左键 { if (e.SubItem > 0 && e.Item.Index >= 0) { this.ExitlistViewEx.StartEditing(ExitEditors[e.SubItem - 1], e.Item, e.SubItem); } } else if (m_ChannelExitMouseDownType == 2)//右键 { m_CurrentItemIndex = e.Item.Index; //if (e.Item.BackColor == Color.Red) //测试中 //{ // this.VolveTestcontextMenuStrip.Items[1].Enabled = true; // this.VolveTestcontextMenuStrip.Items[0].Enabled = false; //} //else//未测试 //{ // this.VolveTestcontextMenuStrip.Items[0].Enabled = true; // this.VolveTestcontextMenuStrip.Items[1].Enabled = false; //} Point point = this.ExitlistViewEx.PointToClient(Control.MousePosition); this.VolveTestcontextMenuStrip.Show(this.ExitlistViewEx, point); } } catch (Exception ex) { Trace.WriteLine("VolveTestForm中函数ExitlistViewEx_SubItemClicked出错" + ex); #if REALEASE GlobalDataInterface.WriteErrorInfo("VolveTestForm中函数ExitlistViewEx_SubItemClicked出错" + ex); #endif } }
protected void OnSubItemClicked(SubItemEventArgs e) { if (this.SubItemClicked != null) { this.SubItemClicked(this, e); } }
protected void OnSubItemBeginEditing(SubItemEventArgs e) { if (this.SubItemBeginEditing != null) { this.SubItemBeginEditing(this, e); } }
protected void OnSubItemClicked(SubItemEventArgs e) { SubItemClicked?.Invoke(this, e); }
protected void OnSubItemBeginEditing(SubItemEventArgs e) { SubItemBeginEditing?.Invoke(this, e); }
private void listViewAvailableModules_SubItemClicked(object sender, SubItemEventArgs e) { try { if (e.SubItem == 1) { this.lstViewAvailableModules.StartEditing(this.txtDisplay, e.Item, e.SubItem); } } catch (Exception ex) { string strLog; strLog = "------------------" + System.DateTime.Now.ToString() + "-----------------\n"; strLog += "listViewAvailableModules_SubItemClicked General Exception:\n"; strLog += "Message:" + ex.Message + "\n"; strLog += "Source:" + ex.Source + "\n"; strLog += "StackTrace:" + ex.StackTrace + "\n"; strLog += "HResult:" + ex.HResult.ToString() + "\n"; strLog += "-------------------------------------------------------------------------\n"; clsSuiteCRMHelper.WriteLog(strLog); } }