private void HandleCellClick(DataGridView dgv, int column, int row) { if (column == -1 || row == -1) { return; } if (column == dgv.Columns["Item"].Index) { dgv.BeginEdit(true); ((ComboBox)dgv.EditingControl).DroppedDown = true; } else if (column == dgv.Columns["Effect"].Index) { ItemAdapter itemAdapter = ((dgv.DataSource as BindingSource).DataSource as ItemAdapter[])[row]; if (itemAdapter.IsEquipment) { EffectEditorDialog eed = new EffectEditorDialog(itemAdapter.ItemInstance); eed.ShowDialog(); } } }
private void btnCharacterEditArmor2Effect_Click(object sender, EventArgs e) { EffectEditorDialog eed = new EffectEditorDialog(currentCharacter.ArmorSlot2); eed.ShowDialog(); }
private void ShowEffectEditor(Item slot) { EffectEditorDialog eed = new EffectEditorDialog(slot); eed.ShowDialog(); }
private void btnCharacterEditEquipEffect_Click(object sender, EventArgs e) { EffectEditorDialog eed = new EffectEditorDialog(currentCharacter.EquipmentSlot); eed.ShowDialog(); }
private void btnRegCharacterEditArmor1Effect_Click(object sender, EventArgs e) { EffectEditorDialog eed = new EffectEditorDialog(currentGuildCard.GuildCardCharacter.ArmorSlot1); eed.ShowDialog(); }