public bool Show() { bool result = WinApi.ChooseColor(ref chooseColor); if (result) { int value; if (int.TryParse(alphaText.Text, out value)) { SelectedColor = Color.FromArgb((value << 24) | chooseColor.rgbResult); } } return(result); }