private void OnItemChecked(object sender, SWF.ItemCheckedEventArgs args) { if (args.Item == viewItem) { RaiseAutomationPropertyChangedEvent(); } }
private void GroupRoomList_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (e.Item.Checked) { foreach (RoomInfo info in main.roomInfoList) { if (GroupRoomList.Items[e.Item.Index].SubItems[0].Text == info.ID.ToString()) { if (info.StepOn) { setTempControl.Enabled = false; setStepControl.Value = info.TempStep; setStepControl.Enabled = true; } else { setStepControl.Enabled = false; if (info.SetTemp == " ") { setTempControl.Value = 0; } else { setTempControl.Value = Convert.ToInt32(info.SetTemp); } setTempControl.Enabled = true; } } } } }
private void CheckedState(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (aOnClickCallback != null) { aOnClickCallback(); } }
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(); }
public void LVFiles_ItemChecked(object sender, ItemCheckedEventArgs e) { if (LVFiles.CheckedItems.Count == 0) BtnApply.Enabled = false; else BtnApply.Enabled = true; }
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; } } } }
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; } } } }
private void OnFieldChangedFlag(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (!suspendUpdation) { UpdateFieldData(currentIndex, sender as Field); // we need to include a field index as well } }
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. */ } }
private void lvColumns_ItemChecked(object sender, ItemCheckedEventArgs e) { if (!IsBeforeShow) { ExplorerBrowser.PROPERTYKEY pk = (ExplorerBrowser.PROPERTYKEY)e.Item.Tag; BrowserControl.SetColInView(pk, !e.Item.Checked); } }
private static void ListViewOnItemChecked(object sender, ItemCheckedEventArgs args) { var track = args.Item.Tag as Track; if (track != null) { track.Keep = args.Item.Checked; } }
private void remindersListView_ItemChecked(object sender, ItemCheckedEventArgs e) { var reminder = (IReminder)e.Item.Tag; if (reminder != null) { reminder.Enabled = e.Item.Checked; } }
private void ListViewBox_ItemChecked(object sendor, System.Windows.Forms.ItemCheckedEventArgs e) { if (ListViewBox.FocusedItem != null) { CheckEnabled(); //Do something } }
/// <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; }
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; }
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; } } }
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"); }
/// <summary> /// 리스트뷰 체크박스 변경 이벤트 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OaDeviceLV_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (this.DeviceLV.SelectedItems.Count == 0) { for (int i = 0; i < this.OaDeviceLV.Items.Count; i++) { this.OaDeviceLV.Items[i].Checked = false; } } }
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; } } }
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(); }
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 ); } }
private void tvLibsItemChecked(object sender, ItemCheckedEventArgs e) { var node = e.Item as LibraryNode; if (node != null) { node.CheckDependencies(); // Notify about it CheckedLibrariesChanged.Fire(this); } }
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. } } }
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(); }
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; }
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; } } }
private void Lista_ItemChecked(object sender, ItemCheckedEventArgs e) { /* int ItemId = Lfx.Types.Parsing.ParseInt(e.Item.Text); if (ItemId != 0) { if(e.Item.Checked) { //Agrego if(Elemento.Etiquetas.Contains(ItemId) == false) m_Elemento.Etiquetas.Add(new Lbl.Etiqueta(m_Elemento.DataBase, ItemId)); } else { //Lo quito if (Elemento.Etiquetas.Contains(ItemId)) m_Elemento.Etiquetas.RemoveById(ItemId); } } */ }
/// <summary> /// Update checked item counter. This function is a delegate to ItemChecked event of this form /// Not to be confused with ItemCheck event (which happens prior to the checkbox status change) /// references:https://msdn.microsoft.com/en-us/library/system.windows.forms.itemcheckedeventhandler(v=vs.110).aspx /// https://msdn.microsoft.com/en-us/library/system.windows.forms.listview.itemcheck(v=vs.110).aspx /// </summary> /// <param name="sender"> reference to the object that raised the event</param> /// <param name="e"> event specific object with relevant parameters </param> private void listview_ItemCheck(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { number_of_checked_items = get_number_of_checked_items(); // update the button state and text if (number_of_checked_items > 0) { this.button_open_selected_files.Enabled = true; } else { this.button_open_selected_files.Enabled = false; } // update text this.button_open_selected_files.Text = "Open Selected Files " + number_of_checked_items.ToString(); }
private void lvForms_ItemChecked(object sender, ItemCheckedEventArgs e) { if (lvForms.CheckedItems.Count > 0) { if (lvParameters.Columns.Count == 2) { lvParameters.Columns[0].Width = 100; lvParameters.Columns[1].Width = 100; var ch1 = new ColumnHeader { Text = "Entity", Width = 100 }; var ch2 = new ColumnHeader { Text = "Form", Width = 100 }; lvParameters.Columns.AddRange(new[] { ch1, ch2 }); } } else { if (lvParameters.Columns.Count > 2) { lvParameters.Columns.RemoveAt(3); lvParameters.Columns.RemoveAt(2); } } lvParameters.Items.Clear(); foreach (ListViewItem lvItem in lvForms.CheckedItems) { var form = (CrmForm)lvItem.Tag; foreach (var parameter in form.Parameters) { var item = new ListViewItem(parameter.Name); item.SubItems.Add(parameter.Type.ToString()); if (lvForms.CheckedItems.Count > 0) { item.SubItems.Add(parameter.ParentForm.EntityDisplayName); item.SubItems.Add(parameter.ParentForm.Name); } item.Tag = parameter; lvParameters.Items.Add(item); } } }
private void tmpltListView_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (this.obeyEvnts == false) { return; } if (this.tmpltListView.SelectedItems.Count <= 0) { return; } if (this.trnsDateTextBox.Text == "") { bool oldObey = this.obeyEvnts; Global.mnFrm.cmCde.showMsg("Please provide a Transaction Date First!", 0); this.obeyEvnts = false; e.Item.Checked = false; this.obeyEvnts = oldObey; return; } if (e.Item.Checked == true) { this.populateTmpltDet(long.Parse(e.Item.SubItems[3].Text), e.Item.SubItems[1].Text, this.trnsDateTextBox.Text); } else { bool fnd = false; for (int i = 0; i < this.trnsDataGridView.Rows.Count; i++) { if (this.trnsDataGridView.Rows[i].Cells[6].Value.ToString() == e.Item.SubItems[3].Text && this.trnsDataGridView.Rows[i].Cells[4].Value.ToString() == this.trnsDateTextBox.Text) { fnd = true; //this.trnsDataGridView.Rows.RemoveAt(i); return; } } if (fnd == false) { e.Item.Checked = true; } } }
private void resListView_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (e.Item.Equals(null) || this.obeyChnge == false) { return; } for (int i = 0; i < this.resListView.CheckedItems.Count; i++) { if (!(this.selAddrsTextBox.Text.Contains(this.resListView.CheckedItems[i].SubItems[2].Text))) { this.selAddrsTextBox.AppendText(this.resListView.CheckedItems[i].SubItems[2].Text + ";"); } if (!(this.selNamesTextBox.Text.Contains(this.resListView.CheckedItems[i].SubItems[1].Text))) { this.selNamesTextBox.AppendText(this.resListView.CheckedItems[i].SubItems[1].Text + ";"); } } }
private void valuesListView_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { if (this.obeyEvnt == false) { return; } if (e != null) { this.selItemTxt = ""; if (e.Item.Checked == true) { this.selItemTxt = e.Item.Text; e.Item.Selected = true; } } if (this.selOnlyOne == true) { this.uncheckAllBtOne(); } }
/// <summary> /// handle ItemChecked event to update the search locations /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void listViewDrives_ItemChecked(object sender, ItemCheckedEventArgs e) { if (e.Item.Checked) { DriveInfo driveInfo = e.Item.Tag as DriveInfo; if (driveInfo != null) Preferences.CheckedNames += driveInfo.Name + "|"; } else { DriveInfo info = e.Item.Tag as DriveInfo; if (info != null) Preferences.CheckedNames = Preferences.CheckedNames.Replace( info.Name + "|", string.Empty); } }
private void listViewTypes_ItemChecked(object sender, ItemCheckedEventArgs e) { if (_isUpdating == false) { UpdateItemTypeFiltering(); } }
/// <summary> /// Performs custom actions when checked state of an item changes</summary> /// <param name="sender">Sender control</param> /// <param name="e">Event args</param> void listView_ItemChecked(object sender, ItemCheckedEventArgs e) { if (m_listView.SortingItems) return; if (m_listView.MultiSelect) { var currentSelected = SelectedTargets.ToList(); if (!m_targetsLastChecked.OrderBy(x => x.Endpoint).SequenceEqual(currentSelected.OrderBy(x => x.Endpoint))) OnSelectedTargetsChanged(new SelectedTargetsChangedArgs(m_targetsLastChecked, SelectedTargets)); } else { if (e.Item.Checked) { //unchek the rest foreach (ListViewItem item in m_listView.Items) { if ((item != null) && item.Checked && item != e.Item) item.Checked = false; } var currentSelected = SelectedTargets.ToList(); if (!m_targetsLastChecked.OrderBy(x => x.Endpoint).SequenceEqual(currentSelected.OrderBy(x => x.Endpoint))) OnSelectedTargetsChanged(new SelectedTargetsChangedArgs(m_targetsLastChecked, SelectedTargets)); } } }
private void OnItemChecked(object sender, ItemCheckedEventArgs e) { ModifyFlags(1 << e.Item.Index, e.Item.Checked); }
protected virtual void OnItemChecked(ItemCheckedEventArgs e) { throw null; }
private void ListColumns_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { this.UpdateButtonState(); }
void CheckedState(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { }
private void GroupRoomList_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { }
/// <summary> /// handle ItemChecked event to update items to be deleted /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void listViewJunk_ItemChecked(object sender, ItemCheckedEventArgs e) { decimal gain = 0; foreach (ListViewItem item in listViewJunk.Items) { if (item.Checked) { if (Equals(item.Tag, 1)) gain += binsize; if (Equals(item.Tag, 2)) gain += junksize; } if (Equals(item.Tag, 2)) { foreach (DeleteFile del in junk) del.Delete = item.Checked; item.Text = item.Text.Replace(" " + rm.GetString("partial"), string.Empty); } if (Equals(item.Tag, 3)) { foreach (DeleteFile del in zero) del.Delete = item.Checked; item.Text = item.Text.Replace(" " + rm.GetString("partial"), string.Empty); } } labelGain.Text = GetSizeInMB(gain); }
private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e) { if (!isByRedraw) { int sqIndex = (int)listBox1.SelectedValue; if (e.Item.Checked) { int empIndex = int.Parse(e.Item.SubItems[4].Text); dataSet1.Tables["squad_worker"].Rows.Add(new object[] { null, sqIndex, empIndex }); postgreConnection.UpdateDB("squad_worker", dataSet1, 1); } else { int empIndex = int.Parse(e.Item.SubItems[4].Text); dataSet1.Tables["squad_worker"].Select(String.Format("worker_id={0} and squad_id={1}",empIndex,sqIndex))[0].Delete(); postgreConnection.UpdateDB("squad_worker", dataSet1, 2); } } }
private void listViewControllers_ItemChecked(object sender, ItemCheckedEventArgs e) { // This is going to be fired every time something is added to the listview. if(!_internal) { OutputController controller = e.Item.Tag as OutputController; if(e.Item.Checked) { VixenSystem.OutputControllers.Start(controller); } else { VixenSystem.OutputControllers.Stop(controller); } } }
private void lstCodes_ItemChecked(object sender, ItemCheckedEventArgs e) { TargetNode.SignalPropertyChange(); }
private void checkedComboBox_dbName_ItemChecked(object sender, ItemCheckedEventArgs e) { ListView list = e.Item.ListView; if (e.Item.Text == "<全部>" || e.Item.Text.ToLower() == "<all>") { if (e.Item.Checked == true) { // 如果当前勾选了“全部”,则清除其余全部事项的勾选 for (int i = 0; i < list.Items.Count; i++) { ListViewItem item = list.Items[i]; if (item.Text == "<全部>" || item.Text.ToLower() == "<all>") continue; if (item.Checked != false) item.Checked = false; } } } else { if (e.Item.Checked == true) { // 如果勾选的不是“全部”,则要清除“全部”上可能的勾选 for (int i = 0; i < list.Items.Count; i++) { ListViewItem item = list.Items[i]; if (item.Text == "<全部>" || item.Text.ToLower() == "<all>") { if (item.Checked != false) item.Checked = false; } } } } }
private void lstArchivos_ItemChecked(object sender, System.Windows.Forms.ItemCheckedEventArgs e) { ReProcesarEstados(ProcesarChk); }