public override void Initialize() { SetDataGridViewColumns(SearchDataGrid, new string[] { "entry", "name", "displayId", "type", "flags", "size" }); SetDataGridViewColumns(LocationDataGrid, new string[] { "guid", "id", "map", "zoneId", "areaId", "position_x", "position_y", "position_z", "orientation", "rotation0", "rotation1", "rotation2", "rotation3", "animprogress", "state", "spawnMask", "phaseMask", "PhaseId", "PhaseGroup", "spawntimesecs" }); SetDataGridViewColumns(LootDataGrid, new string[] { "Entry", "Item", "Reference", "Chance", "QuestRequired", "LootMode", "GroupId", "MinCount", "MaxCount", "Comment" }); SetDataGridViewColumns(InvolvedInTabStartsDataGrid, new string[] { "Id", "Title", "Level", "faction", "RewardOrRequiredMoney" }); SetDataGridViewColumns(InvolvedInTabEndsDataGrid, new string[] { "Id", "Title", "Level", "faction", "RewardOrRequiredMoney" }); SetDataGridViewColumns(SmartAIDataGrid, new string[] { "entryorguid", "source_type", "id", "link", "event_type", "event_phase_mask", "event_chance", "event_flags", "event_param1", "event_param2", "event_param3", "event_param4", "action_type", "action_param1", "action_param2", "action_param3", "action_param4", "action_param5", "action_param6", "target_type", "target_param1", "target_param2", "target_param3", "target_x", "target_y", "target_z", "target_o", "comment" }); // Bindings goTemplate = new gameobject_template(true); goTemplateBinding = new BindingSource(); goTemplateBinding.DataSource = goTemplate; goTemplateBinding.ReflectionBinding(this, "EditBox_"); }
public override void Initialize() { SetDataGridViewColumns(SearchDataGrid, new string[] { "entry", "name", "subname", "minlevel", "maxlevel", "npcflag" }); SetDataGridViewColumns(LocationDataGrid, new string[] { "guid", "id", "map", "spawnMask", "phaseMask", "modelid", "equipment_id", "position_x", "position_y", "position_z", "orientation", "spawntimesecs", "spawndist", "currentwaypoint", "curhealth", "curmana", "MovementType", "npcflag", "unit_flags", "dynamicflags" }); SetDataGridViewColumns(ModelInfoDataGrid, new string[] { "modelid", "bounding_radius", "combat_reach", "gender", "modelid_other_gender" }); SetDataGridViewColumns(LootDataGrid, new string[] { "Entry", "Item", "Reference", "Chance", "QuestRequired", "LootMode", "GroupId", "MinCount", "MaxCount", "Comment" }); SetDataGridViewColumns(PickPocketLootDataGrid, new string[] { "Entry", "Item", "Reference", "Chance", "QuestRequired", "LootMode", "GroupId", "MinCount", "MaxCount", "Comment" }); SetDataGridViewColumns(SkinningLootDataGrid, new string[] { "Entry", "Item", "Reference", "Chance", "QuestRequired", "LootMode", "GroupId", "MinCount", "MaxCount", "Comment" }); SetDataGridViewColumns(InvolvedInTabStartsDataGrid, new string[] { "Id", "Title", "Level", "faction", "RewardOrRequiredMoney" }); SetDataGridViewColumns(InvolvedInTabEndsDataGrid, new string[] { "Id", "Title", "Level", "faction", "RewardOrRequiredMoney" }); SetDataGridViewColumns(SmartAIDataGrid, new string[] { "entryorguid", "source_type", "id", "link", "event_type", "event_phase_mask", "event_chance", "event_flags", "event_param1", "event_param2", "event_param3", "event_param4", "action_type", "action_param1", "action_param2", "action_param3", "action_param4", "action_param5", "action_param6", "target_type", "target_param1", "target_param2", "target_param3", "target_x", "target_y", "target_z", "target_o", "comment" }); // Bindings cTemplate = new creature_template(true); cEquipTemplate = new creature_equip_template(); cTemplateAddon = new creature_template_addon(); cAddon = new creature_addon(); cOnKillReputation = new creature_onkill_reputation(); cTemplateBinding = new BindingSource(); cTemplateBinding.DataSource = cTemplate; cTemplateBinding.ReflectionBinding(this, "EditBox_"); cEquipTemplateBinding = new BindingSource(); cEquipTemplateBinding.DataSource = cEquipTemplate; cEquipTemplateBinding.ReflectionBinding(this, "EquipTemplateBox_"); cTemplateAddonBinding = new BindingSource(); cTemplateAddonBinding.DataSource = cTemplateAddon; cTemplateAddonBinding.ReflectionBinding(this, "TemplateAddonBox_"); cAddonBinding = new BindingSource(); cAddonBinding.DataSource = cAddon; cAddonBinding.ReflectionBinding(this, "AddonBox_"); cOnKillReputationBinding = new BindingSource(); cOnKillReputationBinding.DataSource = cOnKillReputation; cOnKillReputationBinding.ReflectionBinding(this, "OKRBox_"); }