public void ShowAddOrientationDialog()
 {
     inputDialog.Open("Create new named orientation",
                      "Please set name of the new orientation",
                      "Name",
                      "",
                      () => AddOrientation(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 2
0
 public void ShowRenameDialog()
 {
     inputDialog.Open("Rename action point",
                      "",
                      "New name",
                      CurrentActionPoint.Data.Name,
                      () => RenameActionPoint(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 3
0
 public void ShowAddOrientationDialog()
 {
     inputDialog.Open("Create new named orientation",
                      "Please set name of the new orientation",
                      "Name",
                      CurrentActionPoint.GetFreeOrientationName(),
                      () => AddOrientation(inputDialog.GetValue(), (string)RobotsList.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 4
0
 public void ShowAddObjectDialog(string type)
 {
     inputDialog.Open("Add object of type " + type,
                      "",
                      "Object name",
                      SceneManager.Instance.GetFreeAOName(type),
                      () => AddObject(type, inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 5
0
 public void ShowRenameDialog()
 {
     InputDialog.Open("Rename action object",
                      "",
                      "New name",
                      CurrentObject.Data.Name,
                      () => RenameObject(InputDialog.GetValue()),
                      () => InputDialog.Close());
 }
Ejemplo n.º 6
0
 public void ShowNewSceneDialog()
 {
     InputDialog.Open("Create new scene",
                      null,
                      "Name",
                      "",
                      () => NewScene(InputDialog.GetValue()),
                      () => InputDialog.Close());
 }
Ejemplo n.º 7
0
 public void ShowBuildPackageDialog()
 {
     InputDialog.Open("Build package",
                      "",
                      "Package name",
                      Base.ProjectManager.Instance.ProjectMeta.Name + DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss"),
                      () => BuildPackage(InputDialog.GetValue()),
                      () => InputDialog.Close());
 }
Ejemplo n.º 8
0
 public void ShowRenameDialog()
 {
     inputDialog.Open("Rename scene",
                      "",
                      "New name",
                      sceneTile.GetLabel(),
                      () => RenameScene(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 9
0
 public void ShowRenameDialog()
 {
     inputDialog.Open("Rename project",
                      "",
                      "New name",
                      projectTile.GetLabel(),
                      () => RenameProject(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 10
0
 public void ShowAddActionPointDialog()
 {
     inputDialog.Open("Create action point",
                      "Type action point name",
                      "Name",
                      Scene.Instance.GetFreeAPName(CurrentObject.Data.Name),
                      () => CreateNewAP(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
Ejemplo n.º 11
0
 // TODO: add validation once the rename rename package RPC has dryRun parameter
 public void ShowRenameDialog()
 {
     inputDialog.Open("Rename package",
                      "",
                      "New name",
                      packageTile.GetLabel(),
                      () => RenamePackage(inputDialog.GetValue()),
                      () => inputDialog.Close(),
                      validateInput: ValidateProjectName);
 }
Ejemplo n.º 12
0
 public async void ShowRenameDialog()
 {
     if (!await WriteLockProjectOrScene(projectTile.ProjectId))
     {
         return;
     }
     inputDialog.Open("Rename project",
                      "",
                      "New name",
                      projectTile.GetLabel(),
                      () => RenameProject(inputDialog.GetValue()),
                      () => inputDialog.Close(),
                      validateInput: ValidateProjectNameAsync);
 }
Ejemplo n.º 13
0
 public async void ShowRenameDialog()
 {
     if (!await WriteLockProjectOrScene(sceneTile.SceneId))
     {
         return;
     }
     inputDialog.Open("Rename scene",
                      "",
                      "New name",
                      sceneTile.GetLabel(),
                      () => RenameScene(inputDialog.GetValue()),
                      () => CloseRenameDialog(),
                      validateInput: ValidateSceneNameAsync);
 }