當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.ItemCheckedEventArgs類代碼示例

本文整理匯總了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;
 }
開發者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


注:本文中的System.Windows.Forms.ItemCheckedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。