public BuildIndexSyncWindow(FeatureLayer targetLayer, BuildIndexAdapter buildIndexAdapter)
        {
            InitializeComponent();

            this.targetLayer       = targetLayer;
            this.buildIndexAdpater = buildIndexAdapter;
            this.viewModel         = new BuildIndexSyncViewModel(targetLayer, buildIndexAdapter);
            this.DataContext       = viewModel;
            this.Loaded           += new RoutedEventHandler(BuildIndexSyncWindow_Loaded);
        }
Example #2
0
        public BuildIndexSyncViewModel(FeatureLayer featureLayer, BuildIndexAdapter buildIndexAdapter)
        {
            this.featureLayer      = featureLayer;
            this.buildIndexAdapter = buildIndexAdapter;
            var uri = buildIndexAdapter.LayerPlugin.GetUri(featureLayer);

            if (uri != null)
            {
                this.FullName = uri.LocalPath;
            }
            this.cancellationTokenSource = new CancellationTokenSource();
        }