/dports/security/keepass/KeePass-2.49-Source/KeePass/Forms/ |
H A D | UrlOverridesForm.cs | 191 ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems; in OnBtnEdit() 192 if((lvsic == null) || (lvsic.Count != 1)) return; in OnBtnEdit() 194 AceUrlSchemeOverride ovr = (lvsic[0].Tag as AceUrlSchemeOverride); in OnBtnEdit() 206 ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems; in OnBtnDelete() 207 if((lvsic == null) || (lvsic.Count == 0)) return; in OnBtnDelete() 209 foreach(ListViewItem lvi in lvsic) in OnBtnDelete()
|
H A D | EcasTriggerForm.cs | 291 ListView.SelectedListViewItemCollection lvsic = m_lvEvents.SelectedItems; in OnEventEdit() 292 if((lvsic == null) || (lvsic.Count == 0)) return; in OnEventEdit() 295 dlg.InitEx(lvsic[0].Tag as EcasEvent); in OnEventEdit() 319 ListView.SelectedListViewItemCollection lvsic = m_lvConditions.SelectedItems; in OnConditionEdit() 320 if((lvsic == null) || (lvsic.Count == 0)) return; in OnConditionEdit() 323 dlg.InitEx(lvsic[0].Tag as EcasCondition); in OnConditionEdit() 347 ListView.SelectedListViewItemCollection lvsic = m_lvActions.SelectedItems; in OnActionEdit() 348 if((lvsic == null) || (lvsic.Count == 0)) return; in OnActionEdit() 351 dlg.InitEx(lvsic[0].Tag as EcasAction); in OnActionEdit()
|
H A D | IconPickerForm.cs | 423 ListView.SelectedListViewItemCollection lvsic = m_lvCustomIcons.SelectedItems; in OnBtnCustomRemove() 424 if(lvsic.Count == 0) { Debug.Assert(false); return; } in OnBtnCustomRemove() 427 foreach(ListViewItem lvi in lvsic) in OnBtnCustomRemove() 458 ListView.SelectedListViewItemCollection lvsic = m_lvCustomIcons.SelectedItems; in OnBtnCustomSave() 459 if(lvsic.Count == 0) return; in OnBtnCustomSave() 461 if(lvsic.Count == 1) in OnBtnCustomSave() 463 PwCustomIcon ci = (lvsic[0].Tag as PwCustomIcon); in OnBtnCustomSave() 490 foreach(ListViewItem lvi in lvsic) in OnBtnCustomSave() 589 ListView.SelectedIndexCollection lvsic = m_lvCustomIcons.SelectedIndices; in ProcessCmdKey() 590 if(lvsic.Count != 0) in ProcessCmdKey() [all …]
|
H A D | FieldPickerForm.cs | 157 ListView.SelectedListViewItemCollection lvsic = in ProcessItemSelection() 159 if((lvsic == null) || (lvsic.Count != 1)) { Debug.Assert(false); return; } in ProcessItemSelection() 161 ListViewItem lvi = lvsic[0]; in ProcessItemSelection()
|
H A D | UpdateCheckForm.cs | 195 ListView.SelectedListViewItemCollection lvsic = m_lvInfo.SelectedItems; in OnInfoItemActivate() 196 if((lvsic == null) || (lvsic.Count != 1)) { Debug.Assert(false); return; } in OnInfoItemActivate() 197 ListViewItem lvi = lvsic[0]; in OnInfoItemActivate()
|
H A D | FieldRefForm.cs | 114 ListView.SelectedListViewItemCollection lvsic = m_lvEntries.SelectedItems; in GetSelectedEntry() 115 if((lvsic == null) || (lvsic.Count != 1)) return null; in GetSelectedEntry() 117 return (lvsic[0].Tag as PwEntry); in GetSelectedEntry()
|
H A D | EcasTriggersForm.cs | 184 ListView.SelectedListViewItemCollection lvsic = m_lvTriggers.SelectedItems; in OnBtnEdit() 185 if((lvsic == null) || (lvsic.Count == 0)) return; in OnBtnEdit() 188 dlg.InitEx(lvsic[0].Tag as EcasTrigger, true, m_ilIcons); in OnBtnEdit()
|
H A D | PluginsForm.cs | 161 ListView.SelectedListViewItemCollection lvsic = m_lvPlugins.SelectedItems; in UpdatePluginDescription() 162 if(lvsic.Count == 0) in UpdatePluginDescription() 169 ListViewItem lvi = lvsic[0]; in UpdatePluginDescription()
|
H A D | CsvImportForm.cs | 402 ListView.SelectedIndexCollection lvsic = m_lvFields.SelectedIndices; in OnBtnFieldDel() 403 for(int i = lvsic.Count - 1; i >= 0; --i) in OnBtnFieldDel() 404 m_lvFields.Items.RemoveAt(lvsic[i]); in OnBtnFieldDel() 416 ListView.SelectedIndexCollection lvsic = m_lvFields.SelectedIndices; in OnBtnFieldMoveUp() 417 if(lvsic.Count != 1) { Debug.Assert(false); return; } in OnBtnFieldMoveUp() 419 int iPos = lvsic[0]; in OnBtnFieldMoveUp() 429 ListView.SelectedIndexCollection lvsic = m_lvFields.SelectedIndices; in OnBtnFieldMoveDown() 430 if(lvsic.Count != 1) { Debug.Assert(false); return; } in OnBtnFieldMoveDown() 432 int iPos = lvsic[0]; in OnBtnFieldMoveDown()
|
H A D | ColumnsForm.cs | 284 ListView.SelectedListViewItemCollection lvsic = m_lvColumns.SelectedItems; in UpdateColumnPropInfo() 285 if((lvsic == null) || (lvsic.Count != 1) || (lvsic[0] == null)) in UpdateColumnPropInfo() 293 ListViewItem lvi = lvsic[0]; in UpdateColumnPropInfo()
|
H A D | FileBrowserForm.cs | 418 ListView.SelectedListViewItemCollection lvsic = m_lvFiles.SelectedItems; in PerformFileSelection() 419 if((lvsic == null) || (lvsic.Count != 1)) { Debug.Assert(false); return false; } in PerformFileSelection() 421 string str = (lvsic[0].Tag as string); in PerformFileSelection()
|
H A D | PwEntryForm.cs | 1311 if(lvsic.Count != 1) { Debug.Assert(false); return; } in OnBtnAutoTypeEdit() 1314 dlg.InitEx(m_atConfig, lvsic[0], false, m_tbDefaultAutoTypeSeq.Text, in OnBtnAutoTypeEdit() 1336 ListView.SelectedIndexCollection lvsic = m_lvHistory.SelectedIndices; in OnBtnHistoryView() 1337 if(lvsic.Count != 1) { Debug.Assert(false); return; } in OnBtnHistoryView() 1339 PwEntry pe = m_vHistory.GetAt((uint)lvsic[0]); in OnBtnHistoryView() 1354 int n = lvsic.Count; // Getting Count sends a message in OnBtnHistoryDelete() 1360 lvsic.CopyTo(v, 0); in OnBtnHistoryDelete() 1374 if(lvsic.Count != 1) { Debug.Assert(false); return; } in OnBtnHistoryRestore() 1376 m_pwEntry.RestoreFromBackup((uint)lvsic[0], m_pwDatabase); in OnBtnHistoryRestore() 1958 if((lvsic == null) || (lvsic.Count != 1)) return false; // No assert in GetSelBin() [all …]
|
H A D | MainForm_Functions.cs | 2762 ListView.SelectedIndexCollection lvsic = m_lvEntries.SelectedIndices; in MoveSelectedEntries() 2763 if(lvsic.Count > 0) in MoveSelectedEntries() 2765 int pCrit = lvsic[(iMove < 0) ? 0 : (lvsic.Count - 1)]; in MoveSelectedEntries() 4274 ListView.SelectedIndexCollection lvsic = m_lvEntries.SelectedIndices; 4275 if(lvsic == null) { Debug.Assert(false); return; } 4276 int n = lvsic.Count; 4281 m_lvEntries.EnsureVisible(obLast.Value ? lvsic[n - 1] : lvsic[0]); 4284 int iFirst = lvsic[0]; 4285 if(n != 1) m_lvEntries.EnsureVisible(lvsic[n - 1]);
|
/dports/security/keepass/KeePass-2.49-Source/KeePass/UI/ |
H A D | CustomListViewEx.cs | 224 ListView.SelectedListViewItemCollection lvsic = this.SelectedItems; in HandleRenameKeyEvent() 225 if(lvsic.Count >= 1) in HandleRenameKeyEvent() 228 if(bDown) lvsic[0].BeginEdit(); in HandleRenameKeyEvent()
|
H A D | UIUtil.cs | 1265 if(lvsic.Count == 0) return; 1267 int nStart = (bUp ? 0 : (lvsic.Count - 1)); 1268 int nEnd = (bUp ? lvsic.Count : -1); 1271 v.MoveOne((lvsic[i].Tag as T), bUp); in v.MoveOne() 1288 lvsic.CopyTo(v, 0); in lvsic.CopyTo() 1340 int n = lvsic.Count; in DeselectAllItems() 1344 lvsic.CopyTo(v, 0); in DeselectAllItems() 2306 int nSel = lvsic.Count; in SetTopVisibleItem() 2310 lvsic.CopyTo(vSel, 0); in SetTopVisibleItem() 3695 if((lvsic == null) || (lvsic.Count <= 0)) return; in StrDictListDeleteSel() [all …]
|
/dports/security/keepass/KeePass-2.49-Source/Translation/TrlUtil/ |
H A D | MainForm.cs | 535 ListView.SelectedListViewItemCollection lvsic = in OnStringsSelectedIndexChanged() 537 if(lvsic.Count != 1) in OnStringsSelectedIndexChanged() 544 KPStringTableItem kpstItem = (lvsic[0].Tag as KPStringTableItem); in OnStringsSelectedIndexChanged() 548 UIUtil.SetMultilineText(m_tbStrEng, lvsic[0].SubItems[1].Text); in OnStringsSelectedIndexChanged() 549 m_tbStrTrl.Text = lvsic[0].SubItems[2].Text; in OnStringsSelectedIndexChanged() 558 ListView.SelectedListViewItemCollection lvsic = in OnStrKeyDown() 560 if(lvsic.Count != 1) return; in OnStrKeyDown() 562 KPStringTableItem kpstItem = (lvsic[0].Tag as KPStringTableItem); in OnStrKeyDown() 572 int iIndex = lvsic[0].Index; in OnStrKeyDown() 575 lvsic[0].Selected = false; in OnStrKeyDown()
|