public QueryRelatedTool()
 {
     // Initialize the QueryTask
     queryTask = new QueryTask();
     queryTask.ExecuteRelationshipQueryCompleted += QueryTask_ExecuteRelationshipQueryCompleted;
     queryTask.Failed += QueryTask_Failed;
     relationsListForm = new VShortList(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// I want FSM (http://stackoverflow.com/questions/5923767/simple-state-machine-example-in-c)
 /// http://stackoverflow.com/questions/5923767/simple-state-machine-example-in-c/5924286#5924286
 /// </summary>
 public QueryRelatedTool()
 {
     // Initialize the QueryTask
     queryTask = new QueryTask();
     queryTask.ExecuteRelationshipQueryCompleted += QueryTask_ExecuteRelationshipQueryCompleted;
     queryTask.Failed += QueryTask_Failed;
     relationsListForm = new VShortList(this);
     flList            = new Dictionary <string, mwb02.AddIns.VLayer>();
     try {
         MapApplication.Current.Map.Layers.CollectionChanged -= Layers_CollectionChanged;
         MapApplication.Current.Map.Layers.CollectionChanged += Layers_CollectionChanged;
         log(string.Format("Constructor OK"));
     }
     catch (Exception ex) {
         log(string.Format("Constructor, error {0}", ex.Message));
     }
 }         // public QueryRelatedTool()