public override void LoadForm()
{
this.SuspendForm();
this.NotificationInitialize();
UnregisterControl(huntLabel);
UnregisterControl(creatureLabel);
UnregisterControl(bossNameLabel);
UnregisterControl(bossPictureBox);
UnregisterControl(mapUpLevel);
UnregisterControl(mapDownLevel);
mapUpLevel.Image = StyleManager.GetImage("mapup.png");
mapDownLevel.Image = StyleManager.GetImage("mapdown.png");
mapBox.MapUpdated += MapBox_MapUpdated;
pointsLabel.Text = task.taskpoints > 0 ? task.taskpoints.ToString() : "-";
countLabel.Text = task.count.ToString();
taskName.Text = task.GetName();
Creature boss = task.GetBoss();
if (boss != null) {
bossNameLabel.Text = boss.GetName();
bossPictureBox.Image = boss.GetImage();
mapBox.targets.Add(new Target { coordinate = new Coordinate(task.bossposition), image = boss.GetImage(), size = 24 });
} else {
bossNameLabel.Visible = false;
bossPictureBox.Visible = false;
bossInfoLabel.Visible = false;
}
mapBox.mapCoordinate = new Coordinate(task.bossposition);
mapBox.map = StorageManager.getMap(task.bossposition.z);
mapBox.sourceWidth = mapBox.Width;
UnregisterControl(mapBox);
mapBox.UpdateMap();
taskGroupLabel.Text = task.groupname;
baseWidth = this.Size.Width;
baseHeight = this.Size.Height;
refreshAttributes();
this.NotificationFinalize();
this.ResumeForm();
}