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

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

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

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

            eed.ShowDialog();
        }