private void OnFillButtonSelectedValueChanged(NValueChangeEventArgs args) { NAutomaticValue <NFill> newValue = ((NAutomaticValue <NFill>)args.NewValue); NFill fill = newValue.Value; m_Label.TextFill = (NFill)fill.DeepClone(); }
private void OnBorderSplitButtonSelectedValueChanged(NValueChangeEventArgs arg) { NAutomaticValue <NBorder> selectedValue = (NAutomaticValue <NBorder>)arg.NewValue; string str; if (selectedValue.Automatic) { str = "Automatic"; } else if (selectedValue.Value == null) { str = "None"; } else { str = selectedValue.Value.ToString(); } m_EventsLog.LogEvent("Selected border: " + str); }