/// <summary> /// Run Aggregate /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdRun_Click(object sender, EventArgs e) { if (_aggrArray.Count <= 0) { return; } var mCommandResult = CommandHelper.Aggregate(_aggrArray, RuntimeMongoDbContext.GetCurrentCollection().Name); if (mCommandResult.Ok) { UiHelper.FillDataToTreeView("Aggregate Result", trvResult, mCommandResult.Response); trvResult.DatatreeView.BeginUpdate(); trvResult.DatatreeView.ExpandAll(); trvResult.DatatreeView.EndUpdate(); } else { MyMessageBox.ShowMessage("Aggregate Result", mCommandResult.ErrorMessage); } }
/// <summary> /// Run Aggregate /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdRun_Click(object sender, EventArgs e) { if (_AggrArray.Count <= 0) { return; } CommandResult mCommandResult = CommandHelper.Aggregate(_AggrArray); if (mCommandResult.Ok) { MongoDbHelper.FillDataToTreeView("Aggregate Result", trvResult, mCommandResult.Response); trvResult.DatatreeView.BeginUpdate(); trvResult.DatatreeView.ExpandAll(); trvResult.DatatreeView.EndUpdate(); } else { MyMessageBox.ShowMessage("Aggregate Result", mCommandResult.ErrorMessage); } }