private void FillControls() { if (m_Item != null) { ClearControls(); m_bChangedByUI = false; SliderAlpha.Value = m_Item.Alpha; CPBackground.BackColor = WrapperHelpers.ParseCGColor(m_Item.BGColor); m_bChangedByUI = true; } }
private void FillControls() { if (m_Item != null) { ClearControls(); m_bChangedByUI = false; ToggleShadow.Checked = m_Item.ShadowEnable; if ((bool)ToggleShadow.Checked) { EnableControls(); } else { DisableControls(); } SliderShadowAlpha.Value = (int)m_Item.ShadowAlpha; SpinnerShadowBlur.Value = (decimal)m_Item.ShadowBlur; SpinnerOffsetX.Value = (decimal)m_Item.ShadowXOffset; SpinnerOffsetY.Value = (decimal)m_Item.ShadowYOffset; CPShadowColor.BackColor = WrapperHelpers.ParseCGColor(m_Item.ShadowColor); m_bChangedByUI = true; } }