Ejemplo n.º 1
0
        static void OnConfigurationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            FileMapControl v = sender as FileMapControl;

            if (v != null && v.Configuration != null)
            {
                v.SearchPrefixes = new ObservableCollection <string>(ModManagement.SearchPrefixes(v.Configuration));
            }
        }
Ejemplo n.º 2
0
        static void OnUseWildcardChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            FileMapControl me = sender as FileMapControl;

            if (me != null)
            {
                if (me.UseWildcard)
                {
                    string f = me.FileMapping.Source;
                    int    i = f.LastIndexOf('\\');
                    if (i >= 0)
                    {
                        f = f.Substring(0, i + 1) + "*";
                    }
                    else
                    {
                        f = "*";
                    }
                    me.FileMapping.Source = f;
                }
            }
        }