/// <summary>
 ///     Aggregation Builder
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAggrBuilder_Click(object sender, EventArgs e)
 {
     var frmAggregationBuilder = new FrmStageBuilder();
     UIAssistant.OpenModalForm(frmAggregationBuilder, false, true);
     foreach (var item in frmAggregationBuilder.Aggregation)
     {
         stages.Add(item);
     }
     FillStagesTreeview();
 }
        /// <summary>
        ///     Aggregation Builder
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAggrBuilder_Click(object sender, EventArgs e)
        {
            var frmAggregationBuilder = new FrmStageBuilder();

            UIAssistant.OpenModalForm(frmAggregationBuilder, false, true);
            foreach (var item in frmAggregationBuilder.Aggregation)
            {
                stages.Add(item);
            }
            FillStagesTreeview();
        }
Exemple #3
0
 /// <summary>
 ///     生成管道
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAggrBuilder_Click(object sender, EventArgs e)
 {
     if (cmbViewOn.SelectedIndex == -1)
     {
         //必须先选中Collection
         return;
     }
     RuntimeMongoDbContext.SetCurrentCollection(cmbViewOn.Text);
     var frmAggregationBuilder = new FrmStageBuilder();
     UIAssistant.OpenModalForm(frmAggregationBuilder, false, true);
     foreach (var item in frmAggregationBuilder.Aggregation)
     {
         stages.Add(item);
     }
     UiHelper.FillDataToTreeView("stages", trvNewStage, stages.Values.ToList().Select(x => (BsonDocument)x).ToList(), 0);
 }