Example #1
0
        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();
                }
            }
        }
Example #2
0
        private void btnCharacterEditArmor2Effect_Click(object sender, EventArgs e)
        {
            EffectEditorDialog eed = new EffectEditorDialog(currentCharacter.ArmorSlot2);

            eed.ShowDialog();
        }
Example #3
0
        private void ShowEffectEditor(Item slot)
        {
            EffectEditorDialog eed = new EffectEditorDialog(slot);

            eed.ShowDialog();
        }
Example #4
0
        private void btnCharacterEditEquipEffect_Click(object sender, EventArgs e)
        {
            EffectEditorDialog eed = new EffectEditorDialog(currentCharacter.EquipmentSlot);

            eed.ShowDialog();
        }
Example #5
0
        private void btnRegCharacterEditArmor1Effect_Click(object sender, EventArgs e)
        {
            EffectEditorDialog eed = new EffectEditorDialog(currentGuildCard.GuildCardCharacter.ArmorSlot1);

            eed.ShowDialog();
        }