예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 private void Clear()
 {
     _quest = null;
     BindingService.ClearData(this);
 }
예제 #5
0
 private void Clear()
 {
     BindingService.ClearData(this);
 }
예제 #6
0
 private void Clear()
 {
     BindingService.ClearData(this);
     _item = null;
 }
예제 #7
0
 private void ClearMob()
 {
     _mob = null;
     pictureBox1.Image = null;
     BindingService.ClearData(this);
 }
예제 #8
0
 private void button3_Click(object sender, EventArgs e)
 {
     BindingService.ClearData(this);
 }
예제 #9
0
 private void Clear()
 {
     _spell = null;
     BindingService.ClearData(this);
 }
예제 #10
0
 private void Clear()
 {
     BindingService.ClearData(this);
     pictureBox1.Image = null;
     _templateId       = null;
 }