void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (BenefitButton != null) { BenefitButton.Dispose(); BenefitButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (NameButton != null) { NameButton.Dispose(); NameButton = null; } if (NormalButton != null) { NormalButton.Dispose(); NormalButton = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (PrerequisitesButton != null) { PrerequisitesButton.Dispose(); PrerequisitesButton = null; } if (SpecialButton != null) { SpecialButton.Dispose(); SpecialButton = null; } if (TypesButton != null) { TypesButton.Dispose(); TypesButton = null; } }
/// <summary> /// 현재 선택되어 있는 버튼 /// </summary> public void CurrentSelect() { m_currentSelect = false; if (!m_trigger) { NormalButton temp_NormalButton = GetComponent <NormalButton>(); if (temp_NormalButton.Select) { m_flickerColor = Color.red; } else { m_flickerColor = m_baseColor; } } else { m_flickerColor = m_baseColor; } m_currentSelect = true; }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { NormalButton.Focus(); }