private void button1_Click(object sender, System.EventArgs e) { if (_template == null) { return; } BindingService.SyncData(_template, this); SyncFlags(); SyncWeaponSlots(); _npcTemplateService.Save(_template); BindingService.ClearData(this); }
private void Insertspell_Click(object sender, EventArgs e) { _spell = new DBSpell { AllowAdd = true }; SyncSpell(); _spell.ObjectId = null; _spell.SpellID = _spellService.GetNextSpellId(); _spellService.Save(_spell); BindingService.ClearData(this); }
private void button2_Click(object sender, System.EventArgs e) { var dialogResult = MessageBox.Show(@"You are about to create a new NPC Template record.\nAre you sure this is what you want to do?", @"Insert new NPC Template", MessageBoxButtons.YesNo); if (dialogResult != DialogResult.Yes) { return; } _template = new DBNpcTemplate(); BindingService.SyncData(_template, this); SyncFlags(); SyncWeaponSlots(); _template.ObjectId = null; _npcTemplateService.Save(_template); BindingService.ClearData(this); }
private void Clear() { _quest = null; BindingService.ClearData(this); }
private void Clear() { BindingService.ClearData(this); }
private void Clear() { BindingService.ClearData(this); _item = null; }
private void ClearMob() { _mob = null; pictureBox1.Image = null; BindingService.ClearData(this); }
private void button3_Click(object sender, EventArgs e) { BindingService.ClearData(this); }
private void Clear() { _spell = null; BindingService.ClearData(this); }
private void Clear() { BindingService.ClearData(this); pictureBox1.Image = null; _templateId = null; }