/// <summary> /// Updates the title. /// </summary> private void UpdateTitle() { int amount = (int)(((float)this.zoom.Amount * 100f) + 0.5); this.Text = Resource.GetString("Colour Preview") + " (" + amount + "%)"; }