public void Apply() { if (IsValid) { ConsoleLog.WriteLine($@"Registering EFIngresDDEXProvider to {VsKey}"); DataProviderKey.Save(DataProvidersKey.RegistryKey); DataSourceKey.Save(DataSourcesKey.RegistryKey); } }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(true); } DataSourceKey key = (DataSourceKey)value; PieData pie = (PieData)key.DataObject; return(pie.Label.Equals(parameter)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture = null) { string prefix = String.Empty; if (value != null) { DataSourceKey key = (DataSourceKey)value; PieData pie = (PieData)key.DataObject; prefix = pie.Label; } return(String.Format("{0} Sales by Years", prefix)); }