Example #1
0
        private void DB_ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MonsterDB_Binding temp = (MonsterDB_Binding)DB_ListBox.SelectedItem;

            if (temp != null)
            {
                now_mob.ChangeValue(temp);
            }

            MobName.Focus();
        }
Example #2
0
 public void ChangeValue(MonsterDB_Binding param)
 {
     MobId      = param.MobId;
     Name       = param.Name;
     Level      = param.Level;
     Type       = param.Type;
     StatusInfo = new Status(param.StatusInfo);
     Tribe      = param.Tribe;
     Element    = param.Element;
     Size       = param.Size;
     Atk        = param.Atk;
     Matk       = param.Matk;
     Hp         = param.Hp;
     Def        = param.Def;
     Mdef       = param.Mdef;
     Hit        = param.Hit;
     Flee       = param.Flee;
 }