private void timer1_Tick(object sender, EventArgs e)
 {
     try
     {
         FFXIVLIB ffxiv = new ffxivlib.FFXIVLIB();
         Entity currentTarget = ffxiv.getCurrentTarget();
         if (currentTarget != null)
         {
             TargetNameLabel.Text = Encoding.UTF8.GetString(Encoding.Unicode.GetBytes(currentTarget.structure.name));
             TargetHPLabel.Text = String.Format("{0}/{1} {2:0.00}%", currentTarget.structure.cHP, currentTarget.structure.mHP, 100 * (float)currentTarget.structure.cHP / (float)currentTarget.structure.mHP);
             PartyMember me = ffxiv.getPartyMemberInfo(0);
             float dist = (float)Math.Sqrt(Math.Pow(me.structure.X - currentTarget.structure.X, 2) + Math.Pow(me.structure.Y - currentTarget.structure.Y, 2) + Math.Pow(me.structure.Z - currentTarget.structure.Z, 2));
             DistanceLabel.Text = String.Format("dist.{0:0.00}", dist);
         }
         else
         {
             TargetNameLabel.Text = "";
             TargetHPLabel.Text = "";
             DistanceLabel.Text = "";
         }
     }
     catch(Exception _e)
     {
         TargetNameLabel.Text = _e.Message;
         TargetHPLabel.Text = "";
         DistanceLabel.Text = "";
     }
 }