当前位置: 首页>>代码示例>>C#>>正文


C# Forms.ListViewItemSelectionChangedEventArgs类代码示例

本文整理汇总了C#中System.Windows.Forms.ListViewItemSelectionChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ListViewItemSelectionChangedEventArgs类的具体用法?C# ListViewItemSelectionChangedEventArgs怎么用?C# ListViewItemSelectionChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ListViewItemSelectionChangedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ListViewItemSelectionChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ScriptHelper_SelectedChanged

 private void ScriptHelper_SelectedChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     if (SelectedChanged != null)
     {
         SelectedChanged(sender, e);
     }
 }
开发者ID:dalinhuang,项目名称:tdcodes,代码行数:7,代码来源:ScriptHelper.cs

示例2: leksykonNMListView_ItemSelectionChanged

 private void leksykonNMListView_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     string internationalName = e.Item.Text;
     leksykonDescriptionLabel.Text = "Preparaty zawierające: " + internationalName;
     Leksykon_UpdateGrid(
         UnitOfWork.MedicineRepository.GetMedicinesByInternationalName(internationalName));
 }
开发者ID:Bajena,项目名称:aptekanet,代码行数:7,代码来源:MainForm_Leksykon.cs

示例3: dbContentListView_ItemSelectionChanged

        private void dbContentListView_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            var historyItem = (ISearchResult)e.Item.Tag;
            resultsTextBox.Text = _helper.ResultTextGenerator.Generate(historyItem);

            exportResultsButton.Enabled = false;
        }
开发者ID:kzemek,项目名称:FileScanner,代码行数:7,代码来源:MainWindow.cs

示例4: lvwFigure_ItemSelectionChanged

        private void lvwFigure_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            var selectedItem = (e.IsSelected && e.Item != null) ? e.Item.Tag as I図形 : null;
            Global.図形一覧.SelectedItem = selectedItem;

            UpdateCommandButton();
        }
开发者ID:NakaShige,项目名称:rookies,代码行数:7,代码来源:MainForm.cs

示例5: SetText

 protected void SetText(object obj, ListViewItemSelectionChangedEventArgs args)
 {
     tbFirstName.Text = args.Item.SubItems[1].Text;
     tbLastName.Text = args.Item.SubItems[2].Text;
     tbAge.Text = args.Item.SubItems[3].Text;
     lblHiddenId.Text = args.Item.SubItems[0].Text;
 }
开发者ID:tearose,项目名称:OurRepository,代码行数:7,代码来源:Form1.cs

示例6: listView1_ItemSelectionChanged

        private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            //�ڵؿ�ͼ���ù�ϵ��
            IFeatureClass pFeatClass = pParcelFeatLayer.FeatureClass;
            IObjectClass pObjectClass = pFeatClass as IObjectClass;
            IEnumRelationshipClass pEnumRelationshipClass = pObjectClass.get_RelationshipClasses(esriRelRole.esriRelRoleOrigin);
            pEnumRelationshipClass.Reset();
            IRelationshipClass pRelationshipClass = pEnumRelationshipClass.Next();
            IRow pOwnerRow;
            IFeature pParcelFeature;
            AxMapControl axMap = pMainFrm.getMapControl();
            for (int i = 0; i <= pFeatArray.Count - 1; i++)
            {
                pParcelFeature = pFeatArray.get_Element(i) as IFeature;
                ISet pRelatedSet = pRelationshipClass.GetObjectsRelatedToObject(pParcelFeature);
                pRelatedSet.Reset();
                pOwnerRow = pRelatedSet.Next() as IRow;

                if (pOwnerRow != null)
                {

                    if (pOwnerRow.get_Value(pOwnerRow.Fields.FindField("TMK")).ToString() == e.Item.Text)
                    {
                        Utility.FlashFeature(pParcelFeature, axMap.ActiveView.FocusMap);
                        break;
                    }

                }
            }
        }
开发者ID:chinasio,项目名称:Control,代码行数:30,代码来源:frmUpstreamCreateOwnerList.cs

示例7: listView1_ItemSelectionChanged

 private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     if (listView1.SelectedItems.Count > 0){
         textBox2.Text = ((Test) listView1.SelectedItems[0].Tag).description;
         textBox1.Text = ((Test) listView1.SelectedItems[0].Tag).validation;
     }
 }
开发者ID:coj337,项目名称:Upsploit,代码行数:7,代码来源:ResultsForm.cs

示例8: item_click

 /// <summary>
 /// Beim klicken auf ein Item des ListView wird das angeklickte Item zurück gegeben
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void item_click(object sender,ListViewItemSelectionChangedEventArgs e)
 {
     this.DialogResult = System.Windows.Forms.DialogResult.OK;
     movieid = int.Parse(e.Item.SubItems[1].Text);
     orgTitel = e.Item.SubItems[2].Text;
     this.Close();
 }
开发者ID:Mantus667,项目名称:MyMovie,代码行数:12,代码来源:selectMovie.cs

示例9: TorrentList_ItemSelectionChanged

      void TorrentList_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
      {
         if (SelectedItems.Count == 1)
         {
            SelectedItems[0].BackColor = Color.DeepSkyBlue;           

            if (_lastSelectedItem != null)
            {
               _lastSelectedItem.BackColor = Color.White;
            }
            
            _lastSelectedItem = SelectedItems[0];
         }
         
         foreach (ToolStripItem menu in ContextMenuStrip.Items)
         {
            if (SelectedItems.Count == 0)
            {
               menu.Enabled = menu.Text == "Add";
            }
            else
            {
               menu.Enabled = true;
            }
         }
      }
开发者ID:LeXa777,项目名称:PlayGround,代码行数:26,代码来源:TorrentList.cs

示例10: listView1_ItemSelectionChanged

 private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     if (listView1.SelectedItems.Count != 1)
         return;
     var line = listView1.SelectedItems[0];
     if (line.SubItems[1].Text == "META")
         return;
     StartTimeBox.Text = line.SubItems[1].Text;
     EndTimeBox.Text = line.SubItems[2].Text;
     DialogTextBox.Text = line.Text;
     ListViewItem LastLine = null, NextLine = null;
     if (listView1.SelectedIndices[0] > 0)
         LastLine = listView1.Items[listView1.SelectedIndices[0] - 1];
     if (listView1.SelectedIndices[0] < listView1.Items.Count - 1)
         NextLine = listView1.Items[listView1.SelectedIndices[0] + 1];
     audioPanel1.SetSubtitleLines(
         LastLine == null || LastLine.SubItems[1].Text == "META" ? null : new SubtitleLine
         {
             StartTime = MyTimeParse(LastLine.SubItems[1].Text),
             EndTime = MyTimeParse(LastLine.SubItems[2].Text),
             DialogText = StripTags(LastLine.Text)
         }, new SubtitleLine
         {
             StartTime = MyTimeParse(line.SubItems[1].Text),
             EndTime = MyTimeParse(line.SubItems[2].Text),
             DialogText = StripTags(line.Text)
         }, NextLine == null || NextLine.SubItems[1].Text == "META" ? null : new SubtitleLine
         {
             StartTime = MyTimeParse(NextLine.SubItems[1].Text),
             EndTime = MyTimeParse(NextLine.SubItems[2].Text),
             DialogText = StripTags(NextLine.Text)
         }
     );
 }
开发者ID:msg7086,项目名称:starsub,代码行数:34,代码来源:FormMain.cs

示例11: ProductsListItemSelectionChanged

 private void ProductsListItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) {
     NativeMethods.SendMessage(
         NativeMethods.GetParent(NativeMethods.GetParent(NativeMethods.GetParent(Handle))),
         (uint)VSConstants.CPDN_SELCHANGED,
         IntPtr.Zero,
         Handle
     );
 }
开发者ID:whuthj,项目名称:VisualRust,代码行数:8,代码来源:WebPiComponentPickerControl.cs

示例12: listViewMainBox_ItemSelectionChanged

        void listViewMainBox_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            e.Item.ImageKey = minusSignKey;

            ListViewControl stats = new ListViewControl();

              //  listViewMainBox.Items.Add(stats);
        }
开发者ID:anndream,项目名称:anpr-1,代码行数:8,代码来源:ListViewControl.cs

示例13: TreeControl_SelectedChanged

 private void TreeControl_SelectedChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     var entity = (TreeControl.Selected as TreeNode).Tag as IBase;
     if (entity is PageScheme)
     {
         SelectedPage = entity as PageScheme;
     }
 }
开发者ID:dalinhuang,项目名称:tdcodes,代码行数:8,代码来源:PageSchemeDialog.cs

示例14: leksykonNHListView_ItemSelectionChanged

 private void leksykonNHListView_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     string commercialName = e.Item.Text;
     leksykonDescriptionLabel.Text = "Preparaty z grupy: " + commercialName;
     Leksykon_UpdateGrid(
         UnitOfWork.MedicineRepository.GetMedicinesByCommercialName(commercialName)
         );
 }
开发者ID:Bajena,项目名称:aptekanet,代码行数:8,代码来源:MainForm_Leksykon.cs

示例15: listViewFlightSessions_ItemSelectionChanged

 private void listViewFlightSessions_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     if (e.IsSelected)
     {
         last_selected_item = e.Item;
         btnOk.Enabled = true;
     }
 }
开发者ID:MChehadeh,项目名称:userTerminal,代码行数:8,代码来源:FormAddSession.cs


注:本文中的System.Windows.Forms.ListViewItemSelectionChangedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。