本文整理汇总了C#中System.Windows.Forms.ItemCheckedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ItemCheckedEventArgs类的具体用法?C# ItemCheckedEventArgs怎么用?C# ItemCheckedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemCheckedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ItemCheckedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LVFiles_ItemChecked
public void LVFiles_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (LVFiles.CheckedItems.Count == 0)
BtnApply.Enabled = false;
else
BtnApply.Enabled = true;
}
示例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;
}
}
}
}
示例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;
}
}
}
}
示例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();
}
示例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. */
}
}
示例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;
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
}
}
示例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");
}
示例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;
}
}
}
示例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 );
}
}
示例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();
}