本文整理汇总了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);
}
}
示例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));
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
}
}
}
示例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;
}
}
示例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();
}
示例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;
}
}
}
示例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)
}
);
}
示例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
);
}
示例12: listViewMainBox_ItemSelectionChanged
void listViewMainBox_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
{
e.Item.ImageKey = minusSignKey;
ListViewControl stats = new ListViewControl();
// listViewMainBox.Items.Add(stats);
}
示例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;
}
}
示例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)
);
}
示例15: listViewFlightSessions_ItemSelectionChanged
private void listViewFlightSessions_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
{
if (e.IsSelected)
{
last_selected_item = e.Item;
btnOk.Enabled = true;
}
}