示例#1
0
 public void Apply()
 {
     if (IsValid)
     {
         ConsoleLog.WriteLine($@"Registering EFIngresDDEXProvider to {VsKey}");
         DataProviderKey.Save(DataProvidersKey.RegistryKey);
         DataSourceKey.Save(DataSourcesKey.RegistryKey);
     }
 }
示例#2
0
        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));
        }
示例#3
0
        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));
        }