コード例 #1
0
ファイル: frmAggregation.cs プロジェクト: magicdict/MongoCola
 /// <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();
 }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
ファイル: frmCreateView.cs プロジェクト: magicdict/MongoCola
 /// <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);
 }