예제 #1
0
 private void ListViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem == 3)
     {
         listViewEx1.StartEditing(Editors[e.SubItem], e.Item, e.SubItem);
     }
 }
예제 #2
0
 private void cplistEx_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem >= 6 && e.SubItem < 9)
     {
         cplistEx.StartEditing(Editors[0], e.Item, e.SubItem);
     }
 }
예제 #3
0
 void lvVariables_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem >= 2 || e.SubItem == 0)
     {
         this.lvVariables.StartEditing(this.varEditors[e.SubItem], e.Item, e.SubItem);
     }
 }
예제 #4
0
        private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            if (e.SubItem == 1)
            {
                int line = (int)e.Item.Tag;
                switch (m_sfo.getType(line))
                {
                case 0:
                    listViewEx1.StartEditing(stringEditor, e.Item, e.SubItem);
                    break;

                case 2:
                    listViewEx1.StartEditing(stringEditor, e.Item, e.SubItem);
                    break;

                case 4:
                    listViewEx1.StartEditing(integerEditor, e.Item, e.SubItem);
                    break;

                default:
                    listViewEx1.StartEditing(stringEditor, e.Item, e.SubItem);
                    break;
                }
            }
            else if (e.SubItem == 0)
            {
                listViewEx1.StartEditing(stringEditor, e.Item, e.SubItem);
            }
        }
예제 #5
0
        private void lvServers_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            //
            // Depending upon which item selected, use a different edit control
            switch (e.SubItem)
            {
            case COLUMN_DESCRIPTION:
                txtFriendlyName.Text = e.Item.Text;
                lvServers.StartEditing(txtFriendlyName, e.Item, e.SubItem);
                break;

            case COLUMN_INTERNETNAME:
                txtInternetName.Text = e.Item.SubItems[0].Text;
                lvServers.StartEditing(txtInternetName, e.Item, e.SubItem);
                break;

            case COLUMN_PORT:
                txtPort.Text = e.Item.SubItems[1].Text;
                lvServers.StartEditing(txtPort, e.Item, e.SubItem);
                break;

            case COLUMN_PROTOCOL:
                cmbProtocol.Text = e.Item.SubItems[SUBITEM_PROTOCOL].Text;
                lvServers.StartEditing(cmbProtocol, e.Item, e.SubItem);
                break;
            }
        }
예제 #6
0
 private void m_recibo_list_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem >= 3 && e.SubItem <= 5 && isReciboToday)
     {
         m_recibo_list.StartEditing(Editors[0], e.Item, e.SubItem);
     }
 }
        private void lvFilters_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            switch (e.SubItem)
            {
            case 0:
                lvFilters.StartEditing(cbField, e.Item, e.SubItem);
                break;

            case 1:
                lvFilters.StartEditing(cbOp, e.Item, e.SubItem);
                break;

            case 2:
                Field f = Field.FindField(lMappedFields, e.Item.SubItems[0].Text);

                if (f.ControlType != "ComboBox")
                {
                    lvFilters.StartEditing(tbValue, e.Item, e.SubItem);
                }
                else
                {
                    if (e.Item.SubItems[1].Text.Length > 2)
                    {
                        lvFilters.StartEditing(tbValue, e.Item, e.SubItem);
                    }
                    else
                    {
                        f.EditControl.Parent = lvFilters;
                        lvFilters.StartEditing(f.EditControl, e.Item, e.SubItem);
                    }
                }
                break;
            }
        }
예제 #8
0
 private void lvADR_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem == 1)
     {
         udADR.Value = m_Profile.m_ADRSet[e.Item.Index];
         lvADR.StartEditing(udADR, e.Item, e.SubItem);
     }
 }
예제 #9
0
 private void MidiOutput_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem == 2 || e.SubItem == 3)
     {
         this.chkenabled.Checked = BoolExtension.ParseEnglish(e.Item.SubItems[e.SubItem].Text);
         this.lvMidiOutput.StartEditing(this.midiOutputEditors[e.SubItem], e.Item, e.SubItem);
     }
 }
예제 #10
0
        private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            int trophyID = e.Item.ImageIndex;                                              // 在這裡imageid其實等於trophy ID   ex 白金0號, 1...

            if (e.SubItem == 6 && tpsn[trophyID].HasValue && !tpsn[trophyID].Value.IsSync) // 已經取得且尚未同步的才可編輯
            {
                listViewEx1.StartEditing(dateTimePicker1, e.Item, e.SubItem);
            }
        }
예제 #11
0
        /// <summary>
        /// cell clicked, check if correct coloum and start editing
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lvLangFiles_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            if (e.SubItem != 2)
            {
                return;
            }

            cellBefore = e.Item.SubItems[e.SubItem].Text;

            lvLangFiles.StartEditing(tbSubItemEdit, e.Item, e.SubItem);
        }
예제 #12
0
        private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            if (e.SubItem == 3)             // Password field
            {
                // the current value (text) of the subitem is ****, so we have to provide
                // the control with the actual text (that's been saved in the item's Tag property)
                e.Item.SubItems[e.SubItem].Text = e.Item.Tag.ToString();
            }

            listViewEx1.StartEditing(Editors[e.SubItem], e.Item, e.SubItem);
        }
예제 #13
0
 private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (pmenu1.Checked == true)
     {
         listViewEx1.StartEditing(textBoxComment, e.Item, e.SubItem);
     }
     else
     {
         listViewEx1.StartEditing(cboitem, e.Item, e.SubItem);
     }
 }
예제 #14
0
 void lvInputs_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem >= 3)
     {
         try
         {
             this.lvInputs.StartEditing(this.inputEditors[e.SubItem], e.Item, e.SubItem);
         }
         catch { }
     }
 }
예제 #15
0
 private void IPMMACAddrlistViewEx_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     try
     {
         if (e.SubItem > 0 && m_ValuelistViewExDownType == 1)
         {
             this.IPMMACAddrlistViewEx.StartEditing(fMACAddrEditors[e.SubItem - 1], e.Item, e.SubItem);
             m_ValuelistViewExDownType = 0;
         }
     }
     catch (Exception ex)
     {   }
 }
예제 #16
0
        /// <summary>
        /// 浮皮列表单击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SkinlistViewEx_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            try
            {
                if (!(e.Item.Index == (this.SkinlistViewEx.Items.Count - 1) && e.SubItem == 1))
                {
                    this.SkinlistViewEx.StartEditing(SkinSetEditors[e.SubItem], e.Item, e.SubItem);
                }
            }
            catch (Exception ex)
            {
                Trace.WriteLine("QualityParamSetForm-SkinSetForm中函数SkinlistViewEx_SubItemClicked出错" + ex);
#if REALEASE
                GlobalDataInterface.WriteErrorInfo("QualityParamSetForm-SkinSetForm中函数SkinlistViewEx_SubItemClicked出错" + ex);
#endif
            }
        }
예제 #17
0
 private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem == 0)
     {
         old = e.Item.SubItems[0].Text;
         //MessageBox.Show(e.Item.Index.ToString());
         mem     = e.Item.Index;
         memcopy = mem;
         listViewEx1.StartEditing(Editors[0], e.Item, 0);
     }
     if (e.SubItem == 4)
     {
         old2 = e.Item.SubItems[4].Text;
         //MessageBox.Show(e.Item.Index.ToString());
         num = e.Item.Index;
         listViewEx1.StartEditing(Editors[1], e.Item, 4);
     }
 }
예제 #18
0
        void lvMain_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            ColumnHeader ch = null;

            for (int i = 0; i < lvMain.Columns.Count; ++i)
            {
                if (i == e.SubItem)
                {
                    ch = lvMain.Columns[i];
                }
            }
            Debug.Assert(ch != null);

            ei_.Clear();
            ei_.Initial = e.Item.SubItems[e.SubItem].Text;
            Control edittingControl = GetEdittingControl(ch);

            lvMain.StartEditing(edittingControl, e.Item, e.SubItem);
        }
예제 #19
0
        private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            int trophyID = e.Item.ImageIndex;// 在這裡imageid其實等於trophy ID   ex 白金0號, 1...

            if (e.SubItem == 6 && !IsTrophySync(trophyID))
            {
                DateTime trophyTime = DateTime.Now;
                if (IsTrophyAchieved(trophyID))
                {
                    if (tpsn[trophyID].HasValue)
                    {
                        trophyTime = tpsn[trophyID].Value.Time;
                    }
                    else
                    {
                        trophyTime = tusr.trophyTimeInfoTable[trophyID].Time;
                    }
                }
                txtDateTimeTmp = e.Item.SubItems[e.SubItem].Text;
                e.Item.SubItems[e.SubItem].Text = trophyTime.ToString(Properties.strings.DateFormatString);
                listViewEx1.StartEditing(dateTimePicker1, e.Item, e.SubItem);
            }
        }
예제 #20
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
            }
        }
예제 #21
0
 private void lvIPs_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
 }