private void lvSupps_SelectedIndexChanged(object sender, EventArgs e) { if (!internalSelect && SupplementSelected != null && lvSupps.SelectedIndices.Count > 0) { TIntArgs args = new TIntArgs(); args.value = lvSupps.SelectedIndices[0]; SupplementSelected.Invoke(sender, args); } }
private void lvSupps_SelectedIndexChanged(object sender, EventArgs e) { if (!internalSelect && SupplementSelected != null) { TreePath selPath; TreeViewColumn selCol; lvSupps.GetCursor(out selPath, out selCol); TIntArgs args = new TIntArgs(); args.value = selPath.Indices[0]; SupplementSelected.Invoke(sender, args); } }
private void LvSupps_SelectedIndexChanged(object sender, EventArgs e) { try { if (!internalSelect && SupplementSelected != null) { TreePath selPath; TreeViewColumn selCol; lvSupps.GetCursor(out selPath, out selCol); TIntArgs args = new TIntArgs(); args.Value = selPath.Indices[0]; if (SupplementSelected != null) { SupplementSelected.Invoke(sender, args); } } } catch (Exception err) { ShowError(err); } }
/// <summary> /// Select the supplement /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">The arguments</param> private void OnSupplementSelected(object sender, TIntArgs e) { this.explorerPresenter.CommandHistory.Add(new Commands.SelectSupplementCommand(supplement, supplement.CurIndex, e.Value + 1)); // Offset by 1 to skip fodder }
private void OnSupplementSelected(object sender, TIntArgs e) { suppIdx = e.value + 1; // Offset by 1 to skip fodder supplementView.SelectedSupplementValues = supplement[suppIdx]; }
private void lvSupps_SelectedIndexChanged(object sender, EventArgs e) { if (!internalSelect && SupplementSelected != null) { TreePath selPath; TreeViewColumn selCol; lvSupps.GetCursor(out selPath, out selCol); TIntArgs args = new TIntArgs(); args.value = selPath.Indices[0]; SupplementSelected.Invoke(sender, args); } }
private void OnSupplementSelected(object sender, TIntArgs e) { suppIdx = e.value + 1; // Offset by 1 to skip fodder supplementView.SelectedSupplementValues = supplement[suppIdx]; }
private void lvSupps_SelectedIndexChanged(object sender, EventArgs e) { if (!internalSelect && SupplementSelected != null && lvSupps.SelectedIndices.Count > 0) { TIntArgs args = new TIntArgs(); args.value = lvSupps.SelectedIndices[0]; SupplementSelected.Invoke(sender, args); } }