public void ShowRenameDialog()
 {
     inputDialog.Open("Rename project",
                      "",
                      "New name",
                      projectTile.GetLabel(),
                      () => RenameProject(inputDialog.GetValue()),
                      () => inputDialog.Close());
 }
 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);
 }