private void btnSelBtn_Click(object sender, EventArgs e)
        {
            switch (cboCondition.SelectedValue.ToString())
            {
            case "2":
                string[] row = new string[3] {
                    "iID", "sNpcName", "sIntroduction"
                };
                RadioList rl = new RadioList("NpcData", row, txtiArg1Edit, txtiArgName, "1");
                rl.ShowDialog();
                break;

            case "11":
                row = new string[3] {
                    "iItemID$0", "sItemName$1", "sTip$5"
                };
                rl = new RadioList("ItemData", row, txtiArg1Edit, txtiArgName, "1");
                rl.ShowDialog();
                break;

            case "7":
                FrmRound fr = new FrmRound(txtiArg1Edit, txtiArgName);
                fr.ShowDialog();
                break;
            }
        }
Exemple #2
0
        private void btnSelNeiGong_Click(object sender, EventArgs e)
        {
            string[] row = new string[3] {
                "ID", "name", "Desc"
            };
            RadioList rl = new RadioList("BattleNeigong", row, txtiid, txtNgName, "1");

            rl.ShowDialog();
        }
Exemple #3
0
        private void btnSel_Click(object sender, EventArgs e)
        {
            string[] row = new string[2] {
                "@iID", "sString"
            };
            RadioList rl = new RadioList("String_table", row, txtMsgStr, txtMsgStrText, "1");

            rl.ShowDialog();
        }
Exemple #4
0
        private void btnSelBuff_Click(object sender, EventArgs e)
        {
            string[] row = new string[3] {
                "@ConditionID", "CondName", "CondDesc"
            };
            RadioList rl = new RadioList(_buffTable, row, textBox20, txtBuffName, "2");

            rl.ShowDialog();
        }
        private void btnSelBuff_Click(object sender, EventArgs e)
        {
            string[] row = new string[3] {
                "ConditionID", "CondName", "CondDesc"
            };
            RadioList rl = new RadioList("BattleCondition", row, txtBuffID, txtBuffName, "2");

            rl.ShowDialog();
        }
        private void ShowForm(TextBox txtId, TextBox txtName)
        {
            string[] row = new string[3] {
                "SkillNo", "SkillName", "NeedToSelectTarget"
            };
            RadioList rl = new RadioList("BattleAbility", row, txtId, txtName, "1");

            rl.ShowDialog();
        }
        private void OpenForm(string iGtype, TextBox txtSelValue2, TextBox txtSelName2)
        {
            string[] row    = null;
            string   tbName = string.Empty;

            switch (iGtype)
            {
            case "6":
                row = new string[3] {
                    "iID", "sNpcName", "sIntroduction"
                };
                tbName = "NpcData";
                break;

            case "7":
                row = new string[3] {
                    "iItemID$0", "sItemName$1", "sTip$5"
                };
                tbName = "ItemData";
                break;

            case "16":
                row = new string[3] {
                    "iRoutineID", "sRoutineName", "sModelName"
                };
                tbName = "RoutineData";
                break;

            case "17":
                row = new string[3] {
                    "ID", "Name", "Desc"
                };
                tbName = "BattleNeigong";
                break;

            case "13":
                row = new string[3] {
                    "iID", "sTitle", "sTip"
                };
                tbName = "TitleData";
                break;

            case "19":
                row = new string[3] {
                    "iID", "sAbilityID", "sBookTip"
                };
                tbName = "AbilityBookData";
                break;
            }
            if (!string.IsNullOrEmpty(tbName))
            {
                RadioList rl = new RadioList(tbName, row, txtSelValue2, txtSelName2, "1");
                rl.ShowDialog();
            }
        }
Exemple #8
0
        private void btnSel2_Click(object sender, EventArgs e)
        {
            string[] row    = null;
            string   tbName = string.Empty;

            switch (cboItem.SelectedValue.ToString())
            {
            case "2":
            case "3":
            case "4":
            case "6":
            case "7":
            case "15":
            case "18":
                row = new string[4] {
                    "@CharID$0", "Helper", "vHp$6", "vSp$7"
                };
                tbName = "CharacterData";
                if (_isDlcFile)
                {
                    tbName = "DLC_CharacterData";
                }
                break;

            case "5":
            case "21":
                row = new string[2] {
                    "@iItemID$0", "sItemName$1"
                };
                tbName = "ItemData";
                if (_isDlcFile)
                {
                    tbName = "DLC_ItemData";
                }
                break;

            case "19":
                row = new string[2] {
                    "@sID", "sQuestName"
                };
                tbName = "QuestDataManager";
                //if (_isDlcFile)
                //{
                //    tbName = "DLC_ItemData";
                //}
                break;
            }
            if (row != null)
            {
                RadioList rl = new RadioList(tbName, row, txtSelValue2, txtSelName2, "1");
                rl.ShowDialog();
            }
        }
Exemple #9
0
        private void btnMustJoin_Click(object sender, EventArgs e)
        {
            string[] row = new string[3] {
                "@iID", "sNpcName", "sIntroduction"
            };
            string tbName = "NpcData";

            if (_isDlcFile)
            {
                tbName = "DLC_NpcData";
            }
            RadioList rl = new RadioList(tbName, row, txtMustJoin, null, "2");

            rl.ShowDialog();
        }
Exemple #10
0
        private void button4_Click(object sender, EventArgs e)
        {
            string[] row = new string[2] {
                "iRID", "sRewardData"
            };
            string tbName = "RewardData";

            if (_isDlcFile)
            {
                tbName = "DLC_RewardData";
            }
            RadioList rl = new RadioList(tbName, row, txtRewardFale, null, "1");

            rl.ShowDialog();
        }
Exemple #11
0
        private void btnSelMsgStr2_Click(object sender, EventArgs e)
        {
            string[] row    = null;
            string   tbName = string.Empty;

            switch (cboItem.SelectedValue.ToString())
            {
            case "2":
                row = new string[2] {
                    "@iRoutineID", "sRoutineName"
                };
                tbName = "RoutineNewData";
                if (_isDlcFile)
                {
                    tbName = "DLC_RoutineNewData";
                }
                break;

            case "3":
                row = new string[2] {
                    "@ID$0", "sNpcName"
                };
                tbName = "NeigongData";
                if (_isDlcFile)
                {
                    tbName = "DLC_NeigongData";
                }
                break;

            case "15":
                row = new string[2] {
                    "sTalenName$1", "@iTalenID$0"
                };
                tbName = "TalentNewData";
                if (_isDlcFile)
                {
                    tbName = "DLC_TalentNewData";
                }
                break;
            }
            if (row != null)
            {
                RadioList rl = new RadioList(tbName, row, txtValue2, txtValue2Text, "1");
                rl.ShowDialog();
            }
        }
        public void BtnSel(string[] row, TextBox txtValue, TextBox txtName)
        {
            RadioList rl = new RadioList(_tbName, row, txtValue, txtName, "1");

            rl.ShowDialog();
        }
        private void btnSelBattleCondition2_Click(object sender, EventArgs e)
        {
            RadioList rl = new RadioList(_tableName, row, txtValue2, txtXgName2, "1");

            rl.ShowDialog();
        }