private void GroupItem_Load(object sender, EventArgs e)
 {
     foreach (string item in AggregationHelper.GetGroupfunction())
     {
         cmbGroupFunction.Items.Add(item);
     }
     if (SystemManager.GetCurrentCollection() != null)
     {
         cmbGroupValue.Items.Add("1");
         foreach (string item in MongoDbHelper.GetCollectionSchame(SystemManager.GetCurrentCollection()))
         {
             cmbGroupFunction.Items.Add("$" + item);
             cmbGroupValue.Items.Add("$" + item);
         }
     }
 }
Exemple #2
0
 private void GroupItem_Load(object sender, EventArgs e)
 {
     foreach (var item in AggregationHelper.GetGroupfunction())
     {
         cmbGroupFunction.Items.Add(item);
     }
     cmbGroupFunction.Items.Add("==========");
     if (RuntimeMongoDbContext.GetCurrentCollection() != null)
     {
         cmbGroupValue.Items.Add("1");
         foreach (var item in MongoHelper.GetCollectionSchame(RuntimeMongoDbContext.GetCurrentCollection()))
         {
             cmbGroupFunction.Items.Add("$" + item);
             cmbGroupValue.Items.Add("$" + item);
         }
     }
 }