コード例 #1
0
  private void ChangePassword() {
    VdcReturnValueBase returnValue =
        Frontend.RunAction(
            VdcActionType.ChangeUserPassword,
            new ChangeUserPasswordParameters(
                (String) getUserName().getEntity(),
                (String) getPassword().getEntity(),
                (String) getNewPassword().getEntity(),
                (String) getDomain().getSelectedItem()));

    if (returnValue != null && returnValue.getSucceeded()) {
      // TODO:
    }
  }
コード例 #2
0
  public void PostOnAddHost(VdcReturnValueBase returnValue) {
    HostModel model = (HostModel) getWindow();

    model.StopProgress();

    if (returnValue != null && returnValue.getSucceeded()) {
      Cancel();
      PostAction();
    }
  }