本文整理汇总了C#中System.Windows.Forms.ItemCheckedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ItemCheckedEventArgs类的具体用法?C# ItemCheckedEventArgs怎么用?C# ItemCheckedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemCheckedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ItemCheckedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: LVFiles_ItemChecked
public void LVFiles_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (LVFiles.CheckedItems.Count == 0)
BtnApply.Enabled = false;
else
BtnApply.Enabled = true;
}
开发者ID:EgyFalseX,项目名称:Winform,代码行数:7,代码来源:LockedFilesFrm.cs
示例2: ListView1_ItemChecked
private void ListView1_ItemChecked(object sender, ItemCheckedEventArgs e)
{
// HACK:For some reason, during the setup phases, the items are there, but aren't assigned. And are null
if (ListView1.Items[ListView1.Items.Count - 1] != null)
{
if (e.Item.Text == "Living" && e.Item.Checked)
{
ListViewItem lvi = ListView1.FindItemWithText("Not Living");
if (lvi != null && lvi.Checked)
{
lvi.Checked = false;
}
}
else if (e.Item.Text == "Not Living" && e.Item.Checked)
{
ListViewItem lvi = ListView1.FindItemWithText("Living");
if (lvi != null && lvi.Checked)
{
lvi.Checked = false;
}
}
}
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:25,代码来源:BioWithWorkgroups.cs
示例3: listViewEnums_ItemChecked
private void listViewEnums_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (_isLoaded && !_isUpdating)
{
if (_node != null)
{
bool set = e.Item.Checked;
long newValue = _node.Value.Value;
if (set)
{
newValue = newValue | (long)e.Item.Tag;
}
else
{
newValue = newValue & ~(long)e.Item.Tag;
}
if (newValue != _node.Value.Value)
{
_node.Value = newValue;
}
}
}
}
开发者ID:michyer,项目名称:canape,代码行数:26,代码来源:FlagsEnumDataNodeEditorControl.cs
示例4: ExListView_ItemChecked
void ExListView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
ExplorerListItem item = e.Item as ExplorerListItem;
if (item.Checked)
{
if (item.DirInfo != null)
{
//Controller.AddDirectory(item.DirInfo);
Controller.SelectedDirs.Add(new BackupFileInfo(item.DirInfo));
}
else
{
Controller.SelectedFiles.Add(new BackupFileInfo(item.FileIn));
}
}
else
{
if (item.DirInfo != null)
{
//Controller.RemoveDirectory(item.DirInfo);
Controller.SelectedDirs.Remove(new BackupFileInfo(item.DirInfo));
}
else
{
Controller.SelectedFiles.Remove(new BackupFileInfo(item.FileIn));
}
}
UpdateSelectedItemsLabel();
}
开发者ID:Breakpoint21,项目名称:backup.dh,代码行数:29,代码来源:DHBWBackup.cs
示例5: lvwGames_ItemChecked
private void lvwGames_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (_UpdatingGames)
return;
string game = e.Item.Text;
if (e.Item.Checked) {
JoinLobbyForm jlf = new JoinLobbyForm(game);
if (jlf.ShowDialog(this) != DialogResult.OK) {
e.Item.Checked = false;
return;
}
try {
Program.BotClient.JoinLobby(game, jlf.From, jlf.To);
} catch (Exception) {
MessageBox.Show(this, "Could not join the lobby '" + game + "'.", "SBFL LFG", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
} else {
try {
Program.BotClient.LeaveLobby(game);
} catch (Exception) {
MessageBox.Show(this, "Could not remove you from the lobby '" + game + "'.", "SBFL LFG", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
try {
UpdateGamesSync();
} catch (Exception ex) {
MessageBox.Show(this, ex.ToString());
/* Do nothing. */
}
}
开发者ID:gunnarbeutner,项目名称:sbfl-lfg,代码行数:34,代码来源:MainForm.cs
示例6: remindersListView_ItemChecked
private void remindersListView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
var reminder = (IReminder)e.Item.Tag;
if (reminder != null)
{
reminder.Enabled = e.Item.Checked;
}
}
开发者ID:kristiandupont,项目名称:CherryTomato-classic,代码行数:8,代码来源:RemindersPanel.cs
示例7: lvColumns_ItemChecked
private void lvColumns_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (!IsBeforeShow)
{
ExplorerBrowser.PROPERTYKEY pk = (ExplorerBrowser.PROPERTYKEY)e.Item.Tag;
BrowserControl.SetColInView(pk, !e.Item.Checked);
}
}
开发者ID:jmbolivar,项目名称:BetterExplorer,代码行数:8,代码来源:MoreColumns.cs
示例8: ListViewOnItemChecked
private static void ListViewOnItemChecked(object sender, ItemCheckedEventArgs args)
{
var track = args.Item.Tag as Track;
if (track != null)
{
track.Keep = args.Item.Checked;
}
}
开发者ID:bdhero,项目名称:bdhero-fat,代码行数:8,代码来源:TrackListView.cs
示例9: siteCollectionList_ItemChecked
/// <summary>
/// Event triggered when an item is checked in the site collection list
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void siteCollectionList_ItemChecked(object sender, ItemCheckedEventArgs e)
{
Cursor.Current = Cursors.WaitCursor;
// Load tree based on selected site collections
UpdateSPTree(e.Item.Text, e.Item.Checked);
Cursor.Current = Cursors.Default;
}
开发者ID:AM1244,项目名称:Blog,代码行数:14,代码来源:SPIcon.cs
示例10: fieldList_ItemChecked
private void fieldList_ItemChecked(object sender, ItemCheckedEventArgs e)
{
((FieldProperty)e.Item.Tag).Visible = e.Item.Checked;
updateList();
// select the clicked item
fieldList.SelectedItems.Clear();
e.Item.Selected = true;
}
开发者ID:damienhaynes,项目名称:moving-pictures,代码行数:9,代码来源:DBObjectFieldEditorDialog.cs
示例11: listView1_ItemChecked
private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (listView1.CheckedItems.Count > 1)
{
for (int i = 0; i < listView1.CheckedItems.Count; i++)
{
//listView1.CheckedItems[i].Checked = false;
}
}
}
开发者ID:flashprogram,项目名称:SSCCashierMagSys,代码行数:10,代码来源:frmParticulars.cs
示例12: lvf_ItemChecked
private void lvf_ItemChecked(object sender, ItemCheckedEventArgs e) {
uint val = 0;
foreach (ListViewItem lvi in lvf.Items) {
val |= lvi.Checked ? (uint)lvi.Tag : 0;
}
tbOut10.Text = val.ToString();
tbOut16.Text = val.ToString("x8");
}
开发者ID:windrobin,项目名称:kumpro,代码行数:10,代码来源:FForm.cs
示例13: lstTasks_ItemChecked
private void lstTasks_ItemChecked(object sender, ItemCheckedEventArgs e)
{
foreach (Task task in _myWorkspace.Project.Tasks)
{
if (task.lvm == e.Item)
{
task.Done = e.Item.Checked;
break;
}
}
}
开发者ID:itsbth,项目名称:GLuaR,代码行数:11,代码来源:TaskWindow.cs
示例14: listView1_ItemChecked
private void listView1_ItemChecked( object sender, ItemCheckedEventArgs e )
{
if ( e.Item.Checked )
{
set.Add( (KeyValuePair<AbstractSprite, int>)e.Item.Tag );
}
else
{
set.Remove( (KeyValuePair<AbstractSprite, int>)e.Item.Tag );
}
}
开发者ID:Wi150nZ,项目名称:lioneditor,代码行数:11,代码来源:PatchDialog.cs
示例15: fileListView_ItemChecked
private void fileListView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (loading) return;
Renamable item = e.Item.Tag as Renamable;
item.Approved = e.Item.Checked;
itemsToRename.UpdateFinalFilenames();
UpdateStandardControls();
PopulateRenameList();
}
开发者ID:MichelZ,项目名称:moving-pictures-michelz,代码行数:11,代码来源:RenameConfirmationPopup.cs
示例16: deviceListView_ItemChecked
private void deviceListView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (!this.started)
{
bool itemChecked = e.Item.Checked;
if (itemChecked)
{
// TODO: If there are multi-items, only one can be selected.
}
}
}
开发者ID:mrddos,项目名称:planisphere,代码行数:11,代码来源:MainForm.cs
示例17: tvLibsItemChecked
private void tvLibsItemChecked(object sender, ItemCheckedEventArgs e)
{
var node = e.Item as LibraryNode;
if (node != null)
{
node.CheckDependencies();
// Notify about it
CheckedLibrariesChanged.Fire(this);
}
}
开发者ID:Xtremrules,项目名称:dot42,代码行数:11,代码来源:AdditionalLibrariesControl.cs
示例18: listViewBookings_ItemChecked
private void listViewBookings_ItemChecked(object sender, ItemCheckedEventArgs e)
{
listViewBookings.ItemChecked -= listViewBookings_ItemChecked;
foreach (ListViewItem item in listViewBookings.Items)
{
if (item != e.Item)
if (((SageBooking)item.Tag).MovementSetId == ((SageBooking)e.Item.Tag).MovementSetId)
item.Checked = e.Item.Checked;
}
listViewBookings.ItemChecked += listViewBookings_ItemChecked;
_setSelectedBookings();
}
开发者ID:Ramazanov,项目名称:FomsNet,代码行数:13,代码来源:FrmExportSage.cs
示例19: lvPesquisa_ItemChecked
private void lvPesquisa_ItemChecked(object sender, ItemCheckedEventArgs e)
{
foreach (var item in lvPesquisa.CheckedItems)
{
if (e.Item != item)
{
((ListViewItem)item).Checked = false;
}
}
codJogo = Convert.ToInt32(e.Item.Text);
btnSalvar.Enabled = e.Item.Checked;
}
开发者ID:AlanAds03,项目名称:MaisGamers,代码行数:13,代码来源:PesquisaJogo.cs
示例20: listMaps_ItemChecked
private void listMaps_ItemChecked(object sender, ItemCheckedEventArgs e)
{
for (int i = 0; i < mAllMaps.Length; i++)
{
if (mAllMaps[i].Name == e.Item.Text)
{
mAllMaps[i].InGame = e.Item.Checked;
UpdateInGameMapsCountStatus();
break;
}
}
}
开发者ID:amnonya,项目名称:Generals-Maps,代码行数:14,代码来源:UpdaterForm.cs
注:本文中的System.Windows.Forms.ItemCheckedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论