コード例 #1
0
 protected void OnSubItemBeginEditing(SubItemEventArgs e)
 {
     if (SubItemBeginEditing != null)
     {
         SubItemBeginEditing(this, e);
     }
 }
コード例 #2
0
 protected void OnSubItemClicked(SubItemEventArgs e)
 {
     if (SubItemClicked != null)
     {
         SubItemClicked(this, e);
     }
 }
コード例 #3
0
 protected void OnListClicked(SubItemEventArgs e)
 {
     if (ListClicked != null)
     {
         ListClicked(this, e);
     }
 }
コード例 #4
0
        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);
        }
コード例 #5
0
ファイル: ListViewEx.cs プロジェクト: skulletor-cfb/CFB-Tools

        
コード例 #6
0
        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
            }
        }
コード例 #7
0
 protected void OnSubItemClicked(SubItemEventArgs e)
 {
     if (this.SubItemClicked != null)
     {
         this.SubItemClicked(this, e);
     }
 }
コード例 #8
0
 protected void OnSubItemBeginEditing(SubItemEventArgs e)
 {
     if (this.SubItemBeginEditing != null)
     {
         this.SubItemBeginEditing(this, e);
     }
 }
コード例 #9
0
ファイル: ListViewEx.cs プロジェクト: chrises5/Debouncer
 protected void OnSubItemClicked(SubItemEventArgs e)
 {
     SubItemClicked?.Invoke(this, e);
 }
コード例 #10
0
ファイル: ListViewEx.cs プロジェクト: chrises5/Debouncer
 protected void OnSubItemBeginEditing(SubItemEventArgs e)
 {
     SubItemBeginEditing?.Invoke(this, e);
 }
コード例 #11
0
 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);
     }
 }