public BusinessObjective(Category owner, string name) { this.owner = owner; this.name = name; baseObjectiveWidth = owner.Width; owner.Controls.Add(this); this.Height = baseObjectiveHeight; this.Width = Parent.Width; this.BackColor = Color.Aquamarine; this.Location = FindLocation(); MakeLabel(); // objective.Name = name; owner.UpdateHeight(); //owner.Controls.Add(this); //this.Location = FindLocation(); }
public BusinessObjective(Category owner, string name) { this.owner = owner; this.name = name; baseObjectiveWidth = owner.Width; owner.Controls.Add(this); this.Height = baseObjectiveHeight; this.Width = Parent.Width; this.BackColor = Color.Aquamarine; this.Location = FindLocation(); MakeLabel(); // objective.Name = name; owner.UpdateHeight(); //owner.Controls.Add(this); //this.Location = FindLocation(); }
public void UpdateHeight() { this.Height = 20 + baseObjectiveHeight + initiatives.Count * 20; //UpdateLocation(); owner.UpdateHeight(); }