Beispiel #1
0
 public MainWindowViewModel()
 {
     // Initialize variable and property.
     _utils                    = new EarthNamedpipeAPIUtils();
     InputString               = "";
     OutputString              = "";
     ConnectEarthCommand       = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.Connect));
     GetCameraCommand          = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetCamera));
     SetCameraCommand          = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.SetCamera));
     FlyToCommand              = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.FlyTo));
     AddLayerCommand           = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.AddLayer));
     ClearLayersCommand        = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearLayers));
     GetSnapshotCommand        = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetSnapshot));
     GetLayerLoadStatusCommand = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetLayerLoadStatus));
     GetWorkspaceCommand       = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetWorkspace));
     ImportWorkspaceCommand    = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ImportWorkspace));
     GetCameraCommand          = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetCamera));
     RemoveLayerCommand        = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.Removelayer));
     ClearInputBoxCommand      = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearInputputBox));
     ClearOutputBoxCommand     = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearOutputBox));
     HelpCommand               = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.Help));
 }
Beispiel #2
0
 public MainWindowViewModel()
 {
     APIUrl                 = AutomationAPIHelper.APIBaseUrl;
     InputString            = string.Empty;
     OutputString           = string.Empty;
     GetCameraCommand       = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetCamera));
     SetCameraCommand       = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.SetCamera));
     SetFlightCommand       = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.SetFlight));
     AddLayerCommand        = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.AddLayer));
     GetLayerCommand        = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetLayer));
     RemoveLayerCommand     = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.RemoveLayer));
     ClearLayersCommand     = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearLayers));
     AddGraphicCommand      = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.AddGraphic));
     GetGraphicCommand      = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetGraphic));
     UpdateGraphicCommand   = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.UpdateGraphic));
     RemoveGraphicCommand   = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.RemoveGraphic));
     GetWorkspaceCommand    = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.GetWorkspace));
     ImportWorkspaceCommand = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ImportWorkspace));
     ClearWorkspaceCommand  = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearWorkspace));
     TakeSnapshotCommand    = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.TakeSnapshot));
     ClearInputBoxCommand   = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.ClearInputputBox));
     SendButtonCommand      = new FunctionTypeCommand(e => ExecuteFuction(FunctionType.Send));
 }